Create A Reddit Scraper Without API Key Using Python

  Рет қаралды 2,244

Jie Jenn

Jie Jenn

5 ай бұрын

Reddit, a platform where millions of people share their ideas, opinions, and questions about anything. It’s also a data gold mine for data analytics, trend analysis, and market research. In this tutorial, I will show you how to scrape reddit data without using Reddit API access key in Python.
📋 Source Code: / source-code-tw-n-10231...
► Buy Me a Coffee? Your support is much appreciated!
-------------------------------------------------------------------------------------------
☕ Paypal: www.paypal.me/jiejenn/5
☕ Venmo: @Jie-Jenn
💸 Join Robinhood with my link and we'll both get a free stock: bit.ly/3iWr7LC
► Support my channel so I can continue making free contents
---------------------------------------------------------------------------------------------------------------
🛒 By shopping on Amazon → amzn.to/2JkGeMD
👩‍💻 Follow me on Linked: / jiejenn
🌳 Becoming a Patreon supporter: / jiejenn
✉️ Business Inquiring: KZbin@LearnDataAnalysis.org
#webscraping #python #reddit

Пікірлер: 8
@anamzakir-gi3zc
@anamzakir-gi3zc 2 ай бұрын
is there a way i can save photos from a post?
@jiejenn
@jiejenn 2 ай бұрын
Let me look into it.
@anamzakir-gi3zc
@anamzakir-gi3zc 2 ай бұрын
@@jiejenn ive figured it out thanks. subreddit = await reddit.subreddit("cats") all = subreddit.search("flair:humor", time_filter="all") urllist = [] redditors = [] async for submission in all: if "gif" in str(submission.url) or "jpeg" in submission.url: urllist.append(submission.url) from here use PIL and requests to save to your files
@lovenyajain6835
@lovenyajain6835 Ай бұрын
@@jiejenn hey did you find any solution? I have been able to extract posts and comments but not photos.
@ShaneZarechian
@ShaneZarechian 4 ай бұрын
Nice, how would you get comments?
@jiejenn
@jiejenn 4 ай бұрын
You will need to figure out the url of the post first, then append /comment.json. For example www.reddit.com/r/CreditCards/comments/1b35tnk/discover_q2_2024_categories/comments
@ShaneZarechian
@ShaneZarechian 4 ай бұрын
@@jiejenn Thanks!
@Zerius_Black
@Zerius_Black Ай бұрын
@@jiejenn hey, with your code i do get an error for comments. How do i have to change the code? Does the url still work like this?
The most important Python script I ever wrote
19:58
John Watson Rooney
Рет қаралды 169 М.
Best KFC Homemade For My Son #cooking #shorts
00:58
BANKII
Рет қаралды 54 МЛН
Who has won ?? 😀 #shortvideo #lizzyisaeva
00:24
Lizzy Isaeva
Рет қаралды 64 МЛН
Cool Items! New Gadgets, Smart Appliances 🌟 By 123 GO! House
00:18
123 GO! HOUSE
Рет қаралды 17 МЛН
PRAW - Using Python to Scrape Reddit Data!
28:31
BitsInBytes
Рет қаралды 6 М.
The Right Way To Build REST APIs
10:07
Awesome
Рет қаралды 71 М.
Modern Python logging
21:32
mCoding
Рет қаралды 163 М.
This AI Agent can Scrape ANY WEBSITE!!!
17:44
Reda Marzouk
Рет қаралды 45 М.
Web Scraping with Python and BeautifulSoup is THIS easy!
15:51
Thomas Janssen | Tom's Tech Academy
Рет қаралды 23 М.
Making Automatic YouTube videos with Python
7:32
Shifty the Dev
Рет қаралды 180 М.
Building a Chatbot with ChatGPT API and Reddit Data
27:35
Thu Vu data analytics
Рет қаралды 50 М.
Scraping 7000 Products in 20 Minutes
20:47
John Watson Rooney
Рет қаралды 4 М.
How-to Use The Reddit API in Python
23:21
James Briggs
Рет қаралды 52 М.
Best KFC Homemade For My Son #cooking #shorts
00:58
BANKII
Рет қаралды 54 МЛН