hedyhli / starcli

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

Filtering by spoken language (new option) #45

Closed hedyhli closed 4 years ago

hedyhli commented 4 years ago

Currently we can only filter by language, date, and stars, we should also add --spoken-language option to filter by spoken language (Chinese, English, etc): Screenshot_20200711_080341

Github API can probably filter it for us, if not, we might have to scrape it from the website. Remember to update the readme when adding a new option

Saif807380 commented 4 years ago

I would like to work on this.

hedyhli commented 4 years ago

Ok @Saif807380 👍🏼

Saif807380 commented 4 years ago

@hedythedev I checked out GitHub Search API documentation. There doesn't seem to be any query parameter for getting repos by spoken language. As for the image you mentioned, that is from the trending repos section. A get request on that url with the query parameters returns HTML so I guess we will have to proceed with scraping. Let me know if there is any alternate way.