简体   繁体   English

Google财经将我的Python脚本识别为机器人,并将其阻止

[英]Google Finance recognizes my Python script as a bot and blocks it

I wrote a script that retrieves stock data on google finance and prints it out, nice and simple. 我写了一个脚本,可以检索Google财经上的股票数据并将其打印出来,既美观又简单。 It always worked, but since this morning I only get a page that tells me that I'm probably an automated script instead of the stock data. 它一直都有效,但是从今天早上开始,我只得到一个页面,告诉我我可能是自动化脚本,而不是库存数据。 Of course, being a script, I can't pass the captcha. 当然,作为脚本,我不能通过验证码。 What can I do? 我能做什么?

well, you finally reached a quite challenging realm. 好吧,您终于到达了一个充满挑战的领域。 decode the captcha. 解码验证码。 there do exist OCR approaches to decode simple captcha into code. 确实存在OCR方法将简单的验证码解码为代码。 not seems to work for google captcha. 似乎不适用于Google验证码。 I heard there are some companies provide manual captcha decoding services, you can try to use some. 听说有些公司提供人工验证码解码服务,可以尝试使用一些。 ^_^ LOL ^ _ ^哈哈

ok, to be serious, if google don't want you to do it that way, then it is not easy to decode those captchas. 好吧,说真的,如果Google不希望您那样做,那么解码这些验证码就不容易了。 After all, why google on finance data, there are a lot other providers, right? 毕竟,为什么在Google上搜索财务数据,还有很多其他提供商,对吗? try to scrape those websites. 尝试抓取那些​​网站。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM