Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to store result in a list #108

Open
liyufei9611 opened this issue May 30, 2023 · 2 comments
Open

how to store result in a list #108

liyufei9611 opened this issue May 30, 2023 · 2 comments

Comments

@liyufei9611
Copy link

liyufei9611 commented May 30, 2023

import stweet as st


def try_tweet_by_id_scrap():
    id_task = st.TweetsByIdTask('1595517609268891648')
    output_json = st.JsonLineFileRawOutput('output_raw_id.jl')
    output_print = st.PrintRawOutput()
    st.TweetsByIdRunner(tweets_by_id_task=id_task,
                        raw_data_outputs=[output_json,output_print]).run()

try_tweet_by_id_scrap()

I get the result on output print. I want to store the return result in a list, how to do that.

@somowennie
Copy link

Does it still work now?

@liyufei9611
Copy link
Author

Does it still work now?

work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants