Skip to content

SG-Property-Hub/property-crawler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setting up the Environment

  1. This code can run only on linux. Use WSL if you on window.

  2. Using python3.10

  3. Fastest way to load environment variables from .env file:

export $(grep -v '^#' .env | xargs)
  1. Import URLs to Redis:
python3 scripts/redis_init_urls.py

Starting the Pipeline

  1. Start the monitor:
celery -A property_crawler flower
  1. Start the worker:
celery -A property_crawler worker -l info -Q crawl_list,crawl_item,io --purge -c 1
  1. Run main script to start pipeline:
python3 -m property_crawler.main --mode full

Stopping Waiting Tasks

If you need to stop waiting tasks, use the following command:

celery -A property_crawler purge -Q crawl_list,crawl_item,io

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published