Comments (1)
My workaround is to automtically change IP whenever blocked.
I'm using windscribe VPN, following the instructions in the first part this article. Once manually logged in through terminal, I'm able to change IP by just one Windscribe command without any input prompted, which makes it easy to integrate into Python code.
Some pseudo-code snippets:
os.system("windscribe connect US")
try:
get_info(url)
except TypeError: # get_info(url) returns None when reached maximum request limit from same IP
os.system("windscribe connect US")
get_info(url)
from douban-to-imdb.
Related Issues (7)
- 电影页面目前没法以非登陆状态抓取 HOT 4
- TypeError: 'NoneType' object is not iterable HOT 3
- 可以导出,但是 imdb 打分速度慢,约为每分钟 1 部 HOT 1
- “无法在IMDB上找到” HOT 2
- TypeError: 'NoneType' object is not iterable HOT 2
- 查找自己的豆瓣 ID HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from douban-to-imdb.