danielcd99 commited on
Commit
d0231e4
1 Parent(s): 6ae4feb

switched from deprecated TwitterUserScraper to TwitterProfileScraper

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,5 +1,5 @@
1
  import streamlit as st
2
- from snscrape.modules.twitter import TwitterUserScraper
3
  import pandas as pd
4
  from Predict import *
5
  from Scraper import *
@@ -39,7 +39,7 @@ with st.form(key='forms'):
39
 
40
  if submit_button:
41
 
42
- scraper = TwitterUserScraper(username)
43
  tweets = get_tweets(scraper, number_of_tweets)
44
  predictions = get_predictions(tweets, pipe)
45
 
 
1
  import streamlit as st
2
+ from snscrape.modules.twitter import TwitterProfileScraper
3
  import pandas as pd
4
  from Predict import *
5
  from Scraper import *
 
39
 
40
  if submit_button:
41
 
42
+ scraper = TwitterProfileScraper(username)
43
  tweets = get_tweets(scraper, number_of_tweets)
44
  predictions = get_predictions(tweets, pipe)
45