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

Using twarc to pull in the dataset #3

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

igorbrigadir
Copy link

WIP

@igorbrigadir
Copy link
Author

igorbrigadir commented Oct 28, 2021

Created rt_queries.txt from

csvcut -c screen_name congressmember_data.csv > screen_names.txt

First, getting counts of all the data with:

twarc2 searches --archive --start-time "2021-01-01" --end-time "2021-10-23" --counts-only --combine-queries --granularity "day" rt_queries.txt rt_queries_counts.csv

Then checked the total tweets with:

import pandas as pd
df =pd.read_csv("rt_queries_counts.csv")
df["day_count"].sum()

And it was 41563787 which would take too long to download all of them with the Monthly tweet cap restrictions. Unfortunate.

However, i'd like to use this as a motivating example for DocNow/twarc#566 later, so i'll update the PR here with the new results when i get them!

@igorbrigadir
Copy link
Author

rt_queries_counts.csv are counts of combined search queries but maybe it will be more useful to see RT counts of each individual, so i'll add individual_day_counts.csv shortly

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

Successfully merging this pull request may close these issues.

1 participant