mirror of
https://github.com/bellingcat/snscrape.git
synced 2026-06-08 02:28:29 +03:00
Fix crash in Telegram scraper
This commit is contained in:
@@ -84,7 +84,7 @@ class TelegramChannelScraper(snscrape.base.Scraper):
|
||||
if not pageLink:
|
||||
break
|
||||
nextPageUrl = urllib.parse.urljoin(r.url, pageLink['href'])
|
||||
r = self._get(nextPageUrl, headers = headers)
|
||||
r = self._get(nextPageUrl, headers = self._headers)
|
||||
if r.status_code != 200:
|
||||
raise snscrape.base.ScraperException(f'Got status code {r.status_code}')
|
||||
soup = bs4.BeautifulSoup(r.text, 'lxml')
|
||||
|
||||
Reference in New Issue
Block a user