twintproject / twint

An advanced Twitter scraping & OSINT tool written in Python that doesn't use Twitter's API, allowing you to scrape a user's followers, following, Tweets and more while evading most API limitations.
MIT License
15.69k stars 2.72k forks source link

[QUESTION] Is it possible to return results of tweet poll/surveys? #977

Open Juanjoglvz opened 3 years ago

Juanjoglvz commented 3 years ago

Issue Template

Please use this template!

Initial Check

If the issue is a request please specify that it is a request in the title (Example: [REQUEST] more features). If this is a question regarding 'twint' please specify that it's a question in the title (Example: [QUESTION] What is x?). Please only submit issues related to 'twint'. Thanks.

Make sure you've checked the following:

Command Ran

I have been trying to gather tweets that use the twitter poll functionality. As an example, I tried scraping tweets from the "SurveyTendencia" account.

import twint

Twint parameters and search

config = twint.Config() config.Username = "SurveyTendencia" twint.run.Search(config)

Description of Issue

I have been trying to extract poll results from tweets, but I am unsure if this is possible with the use of a twitter scrapper. Right now, Twint only returns the text of the tweet (without the poll), but neither the options nor the poll results are returned. Is this possible?

Environment Details

Running twint in a python script. Importing it as a module. Script running on Windows 10.

Thanks in advance.

Edit. Added code for better reproducibility.

himanshudabas commented 3 years ago

Sorry, It's not supported as of now.

Juanjoglvz commented 3 years ago

Any idea if this is even possible (although not implemented)? Or is it completely impossible (because twitter does not return the metadata needed)?

himanshudabas commented 3 years ago

Yes, it's Possible.

Juanjoglvz commented 3 years ago

okay, thanks a lot!