Skip to content

FraneCal/pitchbook-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“ฆ Install Requirements

Before running the scraper, make sure to install the required dependencies:

cd pitchbook_scraper
pip install -r requirements.txt

๐Ÿš€ Starting the Scraper

# Navigate to the scraper directory
cd pitchbook_scraper

# Start the scraper in the background using nohup
# Output is redirected to monitor.log, and the process ID is saved
nohup ./run_scraper.sh monitor > monitor.log 2>&1 &
echo $! > nohup_runner.pid

๐Ÿ›‘ Stopping the Scraper

# If the PID file exists, kill the process and remove the PID file
if [ -f pitchbook_scraper/nohup_runner.pid ]; then
    kill $(cat pitchbook_scraper/nohup_runner.pid) 2>/dev/null
    rm pitchbook_scraper/nohup_runner.pid
fi

# Kill any remaining scraper-related processes
pkill -f run_scraper.sh
pkill -f scraper.py

โ–ถ๏ธ Running Additional Scripts

# Run the low-rated companies visitor script in the background
nohup python3 visit_low_rated_companies.py > monitor.log 2>&1 &

# Run a RAM usage monitor in the background
nohup ./monitor_and_stop.sh monitor > ram_monitor.log 2>&1 &

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published