This project extracts all possible names from the autocomplete API by systematically querying prefixes and handling constraints like rate limits and proxy settings.
- Supports three API versions:
v1,v2, andv3 - Uses a systematic approach to extract names efficiently
- Implements retries and error handling for stability
- Supports proxy configuration for restricted networks
- Saves results to text files for further analysis
- Python 3.x
requestslibrary (pip install requests)
- Clone the repository or download the script.
- Install dependencies:
pip install requests
Run the script to start extraction:
python v1.py
python v2.py
python v3.pyThe autocomplete API provides name suggestions based on the given query prefix. The behavior varies across versions:
- Version 1 (
v1): Returns a maximum of 10 results per query. Using three-letter prefixes (aaatozzz) ensures complete coverage. - Version 2 (
v2): Results contain numbers, and prefixes must be explored recursively as they do not always follow strict alphabetical order. - Version 3 (
v3): Supports special characters like+,., and-. Queries need to be dynamically expanded based on discovered patterns.
- Uses all three-letter prefixes (
aaatozzz) to ensure complete coverage.
- Uses recursive exploration, expanding only if results are found.
- Includes special characters and expands on prefixes dynamically.
The extracted names are saved in respective text files:
v1_names.txtv2_names.txtv3_names.txt
- 407 Proxy Authentication Required: Ensure proxy settings are correctly configured.
- 429 Rate Limit Exceeded: The script automatically retries after a delay.
- Timeout Errors: Check network connectivity and increase timeout values if needed.