Skip to content

Commit

Permalink
ensure URLs are strings
Browse files Browse the repository at this point in the history
  • Loading branch information
neon-ninja committed Mar 30, 2022
1 parent 1531ba9 commit 6e62112
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions facebook_scraper/facebook_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,7 @@ def check_locale(self, response):

def get(self, url, **kwargs):
try:
url = str(url)
if not url.startswith("http"):
url = utils.urljoin(FB_MOBILE_BASE_URL, url)

Expand Down

0 comments on commit 6e62112

Please sign in to comment.