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

Top n URLs shared #9

Open
Quiet27 opened this issue Jul 29, 2022 · 1 comment
Open

Top n URLs shared #9

Quiet27 opened this issue Jul 29, 2022 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Quiet27
Copy link
Contributor

Quiet27 commented Jul 29, 2022

New function to create a chart of the top n URLs shared within the collection of tweets.

# Top n URLs shared
# Based on sharing within the collection of tweets

results <-
dbGetQuery(con,
           "SELECT tweet.id as `tweet_id`,
              tweet.text as `text`,
              url.url as `url`,
              url.expanded_url as `expanded_url`,
              url.display_url as `display_url`
            FROM url
            LEFT JOIN tweet ON url.source_id = tweet.id
            WHERE source_type = 'tweet'
              AND field = 'text';")
# Need to figure out why the same url appears several times within the same tweet_id
@Quiet27 Quiet27 added enhancement New feature or request help wanted Extra attention is needed labels Jul 29, 2022
@Quiet27
Copy link
Contributor Author

Quiet27 commented Apr 21, 2023

Will wait until the new tidy_tweet schema for URLs is implemented first before doing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant