Spaces:
Sleeping
Sleeping
Commit
·
d0231e4
1
Parent(s):
6ae4feb
switched from deprecated TwitterUserScraper to TwitterProfileScraper
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
from snscrape.modules.twitter import
|
| 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 =
|
| 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 |
|