Launching Interactive Mode
Start the interactive runner:Main Menu
The main menu presents four action options:Press Enter to accept the default choice shown in brackets
[1].Site Selection
For each action, you’ll be prompted to select which site(s) to scrape:Action 1: Collect Listing URLs
Collects property listing URLs from search result pages.Configure Jiji parameters (if selected)
Start page:URL mode:
- Auto detect: Spider discovers total pages automatically
- Fixed number of pages: Specify
max_pages(e.g., 5) - Expected listings: Specify
total_listing(e.g., 200) and spider calculates pages needed
Configure Meqasa parameters (if selected)
Start page:URL mode:
- Auto detect: Spider discovers total pages automatically
- Fixed number of pages: Specify
total_pages(e.g., 5)
Example Terminal Session
Action 2: Scrape Listing Details
Scrapes full property details from collected URLs.Specify URL CSV paths
For each selected site:Press Enter to use the default path, or enter a custom path.
Spider runs
The listing spiders read URLs from the CSV and write scraped data to:
outputs/data/jiji_data.csvoutputs/data/meqasa_data.csv
Example Terminal Session
Action 3: Resume Listing Scrape
See the Resume Mode page for detailed documentation on this action.Input Validation
The interactive runner validates all inputs:- Integer prompts: Must be valid integers
>= 1 - Yes/No prompts: Accepts
y,yes,n,no(case-insensitive) - Choice prompts: Accepts the number or the exact choice value
- Path prompts: Converts relative paths to absolute paths from project root
File Paths
All file paths in interactive mode:- Show as relative paths from project root for readability
- Are converted to absolute paths internally
- Can be entered as relative (resolved from project root) or absolute
<project_root>/custom/path.csv.