hedyhli / starcli

:sparkles: Browse trending GitHub projects from your command line
https://pypi.org/project/starcli/
MIT License
550 stars 50 forks source link

Added option to filter by date range. Resolves #44 #59

Closed Saif807380 closed 4 years ago

Saif807380 commented 4 years ago

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 and test_search.py files.

Preview:

Screenshot 2020-07-21 at 21 53 00

Number of stars received today is displayed in the stats column.

Screenshot 2020-07-21 at 21 55 25

This month's stars can be viewed in the grid and list layouts respectively.

hedyhli commented 4 years ago

there was a problem with using this when not specifying a language, fixed it

hedyhli commented 4 years ago

And, seems to me that when did something like this: image

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

Saif807380 commented 4 years ago

I look into that.

Saif807380 commented 4 years ago
Screenshot 2020-07-22 at 17 30 32

I have fixed up both the issues. The last repository in the grid doesn't have a language hence it shows None