markowanga / stweet

Advanced python library to scrap Twitter (tweets, users) from unofficial API
MIT License
588 stars 67 forks source link

How to add picture link to parsed tweets? #31

Closed mewforest closed 3 years ago

mewforest commented 3 years ago

It seems there is no property defined in class description - link.

I used this code:

import stweet as st

search_tweets_task = st.SearchTweetsTask(
    all_words='#covid19',
)
tweets_collector = st.CollectorTweetOutput()

proxies_config = st.RequestsWebClientProxyConfig(
    http_proxy="<Your http proxy URL>",
    https_proxy="<Your https proxy URL>"
)

st.TweetSearchRunner(
    search_tweets_task=search_tweets_task,
    tweet_outputs=[tweets_collector, st.CsvTweetOutput('output_file.csv')],
    web_client=st.RequestsWebClient(proxy=proxies_config, verify=False),
).run()

tweets = tweets_collector.get_scrapped_tweets()
markowanga commented 3 years ago

Ok, I will check this 😊

markowanga commented 3 years ago

I have prepared PR, I think tomorrow it will be in release