Python Scripts - Scraping Reddit via API (PRAW)

preview_player
Показать описание
This is the first video of Python Scripts which will be a collection of scripts accomplishing a collection of tasks.

This video will introduce you to Reddit API, how to gain access to the Reddit API, connect to it using Python framework PRAW and then how to extract all the necessary data via Python.

Praw and Python make it very easy to quickly access the information you want for machine learning (RNNs )or data analysis (PANDAS etc)

Script will be uploaded to my Github once I get my other computer working again :(:

::::::::::::::::::::::::::::::::::SOCIAL MEDIA STUFF:::::::::::::::::::::::::::::::::::::::::::::::::

Just created a facebook page:

Here is my reddit account for sharing links:

Here is my twitter account for programming:

Here is my github account:

Рекомендации по теме
Комментарии
Автор

Brilliant explantion, you have made my day

DG-juwf
Автор

For an intro to web scraping from zero check out this series:


Gentle Intro to Webscraping in Python:

PyMoondra
Автор

Thank you so much and your video saves my final project! Cheers!

jinfeizhu
Автор

thank you very much for your explanation! :)

citormussa
Автор

Hello! Your explanation is very useful. Thank you!

katyabogomazova
Автор

Great video. Is there any way you could provide the rest of the code for the following line in your code?

def = "reddit config.json", json_key = "reddi

Thanks!

greathonor
Автор

it says NameError: name 'create_reddit_object' is not defined but if I remove the reddit = create_reddit_object() it says; AttributeError: 'str' object has no attribute 'subreddit' what do i do?

kenkaneki
Автор

Hey! I installed praw on my cmd, but when i am doing the following in my jupyter notebook:

import praw

It shows no module named 'praw'
(And I checked the praw installation on cmd using pip list, it shows praw 7.1.4 installed!)

Please help me(I am using python 3.8), Thank you! in advance

rishabhkothari
Автор

Hey, I have understood what you have been taught but can you tell me the attribute by which I can get the description of posts.

parasjain
Автор

AttributeError: partially initialized module 'praw' has no attribute 'reddit' (most likely due to a circular import)
is what i got

anirvdh
Автор

Awesome video! Could you explain why it is necessary to use next() on the hot object?

emmett
Автор

This line got cut off at 4:00:

def create_reddit_object (json_file = "reddit_config.json", json_key = "reddit

Does anyone know the rest of that line? I tried it with "reddit_user_values, " as suggested by Jordan Sell in another comment, but that returned invalid syntax error for me.

SugarDemon
Автор

great video, i am trying to get the historical daily number of members on a subreddit. Is it possible using praw?

varinderjitkaur
Автор

When I click on Manage third-party app Authorization it says ' you broke reddit' . How can I solve this issue?

sathvikkrishnaupadhyaya
Автор

I'm having trouble understanding the cell at 3:48. Is that entire cell only done for the sake of hiding your credentials? If not, can anyone give an example of that would look like without the json stuff?

Is defining create_reddit_object even necessary if you're not hiding your credentials? Thanks in advance.

elfinstuff
Автор

I have a question- do you have lesson about work with json and how it add to your function( i understood whats means json_file='...' in def create_redsit_object, but whats means json_key and how it create i dont know)

Anshegar
Автор

I am trying to use this to grab photos from reddit posts. Is that possible?

Ultrakicks
Автор

ResponseException: received 403 HTTP response
i got this . Someone help

vivekalladi
Автор

I am getting the error no module named praw.. please help

shoumikbhattacharya