Skip to content

Commit

Permalink
fix(package/trend): GitHub module new scraping
Browse files Browse the repository at this point in the history
  • Loading branch information
louistiti committed Jun 17, 2019
1 parent 22a3b22 commit 6841493
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/trend/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ def run(string, entities):
try:
r = utils.http('GET', 'https://github.com/trending/' + techslug + '?since=' + since)
soup = BeautifulSoup(r.text, features='html.parser')
elements = soup.select('.repo-list li', limit=limit)
elements = soup.select('article.Box-row', limit=limit)
result = ''

for i, element in enumerate(elements):
repository = element.h3.get_text(strip=True).replace(' ', '')
repository = element.h1.get_text(strip=True).replace(' ', '')
if (element.img != None):
author = element.img.get('alt')[1:]
else:
Expand Down

0 comments on commit 6841493

Please sign in to comment.