Coder Social home page Coder Social logo

meharnarla / web-scraping-with-django-celery Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codingforentrepreneurs/web-scraping-with-django-celery

0.0 0.0 0.0 923 KB

Learn how to schedule regular web scraping, save the data, and more with Django & Celery.

License: MIT License

Python 0.22% Jupyter Notebook 99.78%

web-scraping-with-django-celery's Introduction

Web Scraping on a Schedule with Django & Celery

Learn how to schedule regular web scraping, save the data, and more with Django & Celery.

Topics:

  • Django
  • Celery
  • Selenium
  • Scraped Data to Database via Django
  • Reliable Web Scraping with Selenium + Bright Data

References:

Requirements:

Getting Started

git clone https://github.com/codingforentrepreneurs/Django-Celery-Redis
mv Django-Celery-Redis scrape-scheduler
cd scrape-scheduler

macos/linux

python3 -m venv venv
source venv/bin/activate

windows

c:\Python311\python.exe -m venv venv
.\venv\Scripts\activate

Install requirements

python -m pip install pip --upgrade
python -m pip install -r requirements.txt

Run a local redis instance via Docker Compose

docker compose -f compose.yaml up -d

This will give us redis://localhost:6170

Create .env in src/.env with:

CELERY_BROKER_REDIS_URL="redis://localhost:6170"
DEBUG=True

Navigate into your Django root:

cd src/
ls

You should see at least cfehome/ and manage.py.

Run your project in 2 terminals:

  • python manage.py runserver
  • celery -A cfehome worker --beat

Let's go!

web-scraping-with-django-celery's People

Contributors

codingforentrepreneurs avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.