disinfoRG / FbScraper

MIT License
3 stars 2 forks source link

helper.get_facebook_url_info cannot parse url with 'group' #2

Closed andreawwenyi closed 4 years ago

andreawwenyi commented 4 years ago
import helper
url = 'https://www.facebook.com/groups/781380012294128/permalink/864547563977372'
helper.get_facebook_url_info(url)

Get back exception:

Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/Users/wyw/Codes/FbScraping/helper.py", line 174, in get_facebook_url_info
    url_type = post_info['type']
TypeError: 'NoneType' object is not subscriptable
dieface commented 4 years ago

return original url instead in this commit e94845fd424a36d8777a58cbf0150079c3de4b1e