#đź”’ Help Needed: Scraping Reddit for Sentiment Analysis (Beginner in Python)

8 messages · Page 1 of 1 (latest)

sudden socketBOT
#

@vagrant pivot

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

vagrant pivot
#

Hey everyone,
I’m a master's student in finance working on my thesis, and I need to scrape Reddit data for two specific dates to analyze sentiment regarding electric vehicles. I’m using Python (barely know the basics) and have tried implementing Vader for sentiment analysis, but my code isn’t working.
I have no clue what’s going wrong—I've attached my code below (which is a combination of mine and what I could generate from AI). It keeps telling me that “no relevant posts were found” and doesn’t change even if I post it in a subreddit where there would 100% be some posts for ex: r/electricvehicles). If anyone could take a look and point me in the right direction, I’d be extremely grateful. Any advice is appreciated. You’d literally be helping me pass!

sudden socketBOT
rancid nova
#

In which case it should return a 403 which based off what you sent would print out Error: 403

sudden socketBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.