Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ It can be installed by pip.
$> pip install -r requirements.txt

# Run
$> python vgchartzfull.py
$> python vgchartz-full-crawler.py


```
Expand Down
4 changes: 2 additions & 2 deletions vgchartz-full-crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,11 @@ def download_data(*, start_page, end_page, include_genre):

# We locate the game through search <a> tags with game urls in the main table
game_tags = list(filter(
lambda x: x.attrs['href'].startswith('https://www.vgchartz.com/game/'),
lambda x: 'href' in x.attrs and x.attrs['href'].startswith('https://www.vgchartz.com/game/'),
# discard the first 10 elements because those
# links are in the navigation bar
soup.find_all("a")
))[10:]
))

for tag in game_tags:

Expand Down