Jackhammer9 / RedDownloader

A python library to simplify downloading different types of media from reddit
GNU General Public License v3.0
79 stars 14 forks source link

requests.get #3

Closed KRAA5H closed 2 years ago

KRAA5H commented 2 years ago

In the line

self.PostLinks = requests.get("https://jackhammer.pythonanywhere.com//reddit/subreddit/all", params={'subreddit':Subreddit , 'number':NumberOfPosts , 'flair':flair , 'sort':SortBy})

why have you put this URL link? @JackhammerYT

Jackhammer9 commented 2 years ago

@Kraash0 You are accessing a Reddit API method without authentication that is only possible because when you call that function a get request is sent to that url which has a response server it returns all the necessary information required for downloading the posts on your local system.

KRAA5H commented 2 years ago

@JackhammerYT but how does that url have Reddit data?

Jackhammer9 commented 2 years ago

@Kraash0 the response server has a praw bot that processes the request and sends back the data. You can learn more about it here: https://www.reddit.com/r/Python/comments/s94nu1/reddownloader_3_released_with_now_the_capability/

KRAA5H commented 2 years ago

I see. Thanks