Skill: Ip Rotation | Domain: utils | Category: utility | Level: intermediate Tags:
utility,ip-rotation,proxy,tor,rate-limit
IP Rotation Skill
Rotate IP addresses when sessions are rate-limited or blocked.
Tools Referenced
- Tor IP Changer: https://github.com/isPique/Tor-IP-Changer
- gr33n37 IP Changer: https://github.com/gr33n37/gr33n37-ip-changer
When to Use
- News/market data API rate limits hit
- IP-based blocking on external services
- Session limits from data providers
- Brave Search or other web scraping getting 429/403 errors
Setup
# Install Tor IP Changer
git clone https://github.com/isPique/Tor-IP-Changer
cd Tor-IP-Changer
pip install -r requirements.txt
# Or install gr33n37
git clone https://github.com/gr33n37/gr33n37-ip-changer
cd gr33n37-ip-changer
python setup.py install
Usage Pattern
from tor_ip_changer import TorIpChanger
# Rotate IP before retry
changer = TorIpChanger()
changer.get_new_ip()
# Then retry request with new IP
Integration
Wrap external API calls with IP rotation:
- Attempt request
- If 429/403 received, rotate IP
- Retry with exponential backoff
- Log rotation for debugging
Priority
Low/Medium — only activate when external services actively block.