pratikpv / reddit_scraper_and_sentiment_analyzer Goto Github PK
View Code? Open in Web Editor NEWDownload reddit posts based on keywords and perform sentiment analysis on the posts.
Download reddit posts based on keywords and perform sentiment analysis on the posts.
First of all this is such a nice and easy to use script. My only issue is that it only downloads the starting post of a thread. How would one go about downloading all the comments of that thread?
in reddit_post_sentiment_analysis.py line sid = SentimentIntensityAnalyzer() is only declared but the function is not coded. Please advice if you have the code for it.
Thank you,
Vishal
I get the error below on some dates. Why that is and how can I fix it? Thank you :/
File "C:\Users\apavl\reddit\download_data_from_reddit.py", line 95, in <module>
data = get_pushshift_data(key_word, after, before, sub_reddit)
File "C:\Users\apavl\reddit\download_data_from_reddit.py", line 15, in get_pushshift_data
data = json.loads(r.text)
File "C:\Users\apavl\anaconda3\envs\reddit\lib\json\__init__.py", line 348, in loads
return _default_decoder.decode(s)
File "C:\Users\apavl\anaconda3\envs\reddit\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\apavl\anaconda3\envs\reddit\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
JSONDecodeError: Expecting value
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.