Skip to main content
competitor_tracker.py
Parallel monitors continue running after the script exits and may consume usage. Save every monitor_id returned by the creation response. When you finish, create a ParallelTools(enable_search=False, enable_extract=False, enable_monitor=True) instance and call cancel_monitor(monitor_id) for each saved ID. Leave unrelated account monitors active.

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your API keys

4

Run the example

Save the code above as competitor_tracker.py, then run:
Full source: cookbook/91_tools/parallel/competitor_tracker.py