Closed Saif807380 closed 4 years ago
there was a problem with using this when not specifying a language, fixed it
And, seems to me that when did something like this:
The language couldn't get scraped from the site (notice the None), I checked the logic in search_github_trending though it looks ok.
By the way can you also make the 10 stars this week
line on the next line after the stats for grid view? Thanks, I'm not on my computer at the moment so I can't do it for you
I look into that.
I have fixed up both the issues. The last repository in the grid doesn't have a language hence it shows None
Context
Added new feature to filter by date range.
Description Updated the search_by_spoken_language to search_github_trending. Updated the scraper to scrape date range data. Added new option
--date-range
or-D
to filter by three choices: today, this-week and this-month. This option works with programming language, number of stars, limit results, all 3 layouts, as well as ordering.I have also updated the
README.md
andtest_search.py
files.Preview:
Number of stars received today is displayed in the stats column.
This month's stars can be viewed in the grid and list layouts respectively.