Skip to content

A Python script utilizing PRAW (Python Reddit API Wrapper) to crawl a specific Reddit thread in search of music suggestions. This script fetches comments from the thread specified in the URL and prints them out. It's a handy tool for discovering songs based on a particular theme or topic discussed within a Reddit community.

Notifications You must be signed in to change notification settings

orlyyani/python-scrape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Reddit Music Suggestions Crawler

This Python script utilizes PRAW (Python Reddit API Wrapper) to crawl a specific Reddit thread in search of music suggestions. It fetches comments from the specified thread URL and prints them out. It's a handy tool for discovering songs based on a particular theme or topic discussed within a Reddit community.

Prerequisites

  • Python 3.x
  • PRAW (Python Reddit API Wrapper)
  • dotenv

Installation

  1. Clone this repository to your local machine.
  2. Install the required dependencies by running pip install -r requirements.txt.
  3. Create a .env file in the root directory of the project and add your Reddit API credentials:
    REDDIT_CLIENT_ID=your_client_id
    REDDIT_CLIENT_SECRET=your_client_secret
    REDDIT_USER_AGENT=your_user_agent
    

Usage

  1. Modify the url variable in the script to point to the Reddit thread from which you want to fetch music suggestions.
  2. Run the script using python reddit_music_crawler.py.

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue for any bugs, feature requests, or questions.

About

A Python script utilizing PRAW (Python Reddit API Wrapper) to crawl a specific Reddit thread in search of music suggestions. This script fetches comments from the thread specified in the URL and prints them out. It's a handy tool for discovering songs based on a particular theme or topic discussed within a Reddit community.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages