diff --git a/gitfive/lib/social.py b/gitfive/lib/social.py index c81c4a0..eade3b9 100644 --- a/gitfive/lib/social.py +++ b/gitfive/lib/social.py @@ -19,7 +19,7 @@ async def get_follows(runner: GitfiveRunner, to_scrape: str): req = await runner.as_client.get(f"https://github.com/{runner.target.username}?tab={to_scrape}") body = BeautifulSoup(req.text, 'html.parser') - followers = body.find("a", href=f"/{runner.target.username}?tab={to_scrape}") + followers = body.find("a", href=f"https://github.com/{runner.target.username}?tab={to_scrape}") followers = int(followers.text.replace('k', '00').replace('.', '').split(' ')[0].strip('\n')) if followers else 0 to_request = [0]+list(range(50, followers, 50)) pages = [nb+1 for nb in range(len(to_request))] @@ -32,4 +32,4 @@ async def get_follows(runner: GitfiveRunner, to_scrape: str): else: nursery.start_soon(fetch_follow_page, runner, to_scrape, page, usernames) - return usernames \ No newline at end of file + return usernames