How To Scrape Reddit & Automatically Label Data For NLP Projects | Reddit API Tutorial

In this tutorial I show you how to scrape reddit with the reddit API and automatically label the data for NLP projects. We use PRAW (Python Reddit API Wrapper) to download data and nltk to do sentiment classification and assign positive, negative, and neutral labels.

Get my Free NumPy Handbook:
https://www.python-engineer.com/numpybook

✅ Write cleaner code with Sourcery, instant refactoring suggestions in VS Code & PyCharm: https://sourcery.ai/?utm_source=youtube&utm_campaign=pythonengineer *

🪁 Code faster with Kite, AI-powered autocomplete that integrates into VS Code & PyCharm:
https://www.kite.com/get-kite/?utm_medium=referral&utm_source=youtube&utm_campaign=pythonengineer&utm_content=description-only *

⭐ Join Our Discord : https://discord.gg/FHMg9tKFSN

📓 ML Notebooks available on Patreon:
https://www.patreon.com/patrickloeber

If you enjoyed this video, please subscribe to the channel:
▶️ : https://www.youtube.com/channel/UCbXgNpp0jedKWcQiULLbDTA?sub_confirmation=1

Resources:
Reddit API Setup: https://www.reddit.com/prefs/apps
PRAW: https://praw.readthedocs.io/
PRAW submission docs: https://praw.readthedocs.io/en/latest/code_overview/models/submission.html

~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

🖥️ Website: https://www.python-engineer.com
🐦 Twitter – https://twitter.com/python_engineer
✉️ Newsletter – https://www.python-engineer.com/newsletter
📸 Instagram – https://www.instagram.com/patloeber
🦾 Discord: https://discord.gg/FHMg9tKFSN
▶️ Subscribe: https://www.youtube.com/channel/UCbXgNpp0jedKWcQiULLbDTA?sub_confirmation=1

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅿 Patreon – https://www.patreon.com/patrickloeber

#Python

Timeline:
00:00 – Introduction
01:20 – Part 1: Reddit API
07:43 – Part 2: Label The Data

———————————————————————————————————-
* This is an affiliate link. By clicking on it you will not have any additional costs, instead you will support me and my project. Thank you so much for the support! 🙏

Source of this Python/AI Video

AI video(s) you might be interested in …