Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
poison committed Dec 3, 2015
1 parent 6a6d68d commit b69bf83
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# steam-scraper
Scrapes game data from the Steam shop API and adds categories from the shop categories and genres.

Does not yet write the file directly, pipe it to a temp file and overwrite it yourself.

Shop API is rate limited and suffers from non-deterministic failures, run the script multiple times to gather more data.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ public class Scraper {
*/
public static void main(String[] args) throws MalformedURLException, IOException {
final Path path=Paths.get("/home/poison/.steam/steam/steamapps");
// /usr/local/games/_wine/steam/drive_c/Program Files/Steam/steamapps
//final Set<Long> gameIds=LibraryScanner.findGames(Paths.get("/home/poison/.steam/root/SteamApps"));
final Set<Long> gameIds=LibraryScanner.findGames(path);
System.err.println(Joiner.on(',').join(gameIds));
Scraper s=new Scraper();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public void tag() throws IOException, RecognitionException {
}
}
System.out.println(vdfRoot.toPrettyString());
System.err.println("pipe to file and copy to: " + path.toString());
}

private static void addTags(VdfNode gameNode, Data gameData) {
Expand Down

0 comments on commit b69bf83

Please sign in to comment.