Common-SenseMakers / sensemakers

Sensemakers infrastructure for developing AI-based tools for semantic annotations of social posts. Cross-poster app to publish your semantic posts on different networks.
GNU General Public License v3.0
1 stars 2 forks source link

[NLP] Parser fails on deleted Tweets #95

Closed ShaRefOh closed 1 month ago

ShaRefOh commented 1 month ago

Parser fails on deleted Tweets, for example:

post = scrape_post('https://twitter.com/AravSrinivas/status/1770128084999758130')
results = multi_chain_parser.process_ref_post(post=post,active_list=["hashtags"])
ronentk commented 1 month ago

@ShaRefOh now the code

post = scrape_post('https://twitter.com/AravSrinivas/status/1770128084999758130')

will throw an exception, so you can use a try catch block and handle the exception appropriately.

ronentk commented 1 month ago

(this is on nlp-dev branch currently)