【问题标题】:Bug on My InstaRaider Patch我的 InstaRaider 补丁上的错误
【发布时间】:2015-05-10 13:38:50
【问题描述】:

我从https://github.com/akurtovic/InstaRaider 获得 InstaRaider 脚本,但此版本存在样式声明问题。我为新风格的 Instagram 修补了这个脚本,但是当我下载第 15 张照片时它崩溃了。如果从第 15 张照片开始,它会在第 29 张照片中再次崩溃。你能帮我解决这个有趣的错误吗?


崩溃日志:

$ python2 instaRaider.py -u randomuser
randomuser has 104 photos on Instagram.
Loading Selenium WebDriver...
Loading Instagram profile...
...
Raiding Instagram...
Saving photos to ./Images/randomuser/
------
Photos saved so far:
---------10--------20--------30--------40--------50
##############Traceback (most recent call last):
  File "instaRaider.py", line 234, in <module>
    raider.getPhotos(source, userName, count)
  File "instaRaider.py", line 163, in getPhotos
    rawUrl = x['style']
  File "/usr/lib/python2.7/site-packages/bs4/element.py", line 905, in __getitem__
    return self.attrs[key]
KeyError: 'style'

【问题讨论】:

  • 最好直接问开发者。他们在 github 页面上列出了他们的电子邮件地址

标签: python python-2.7 selenium selenium-webdriver beautifulsoup


【解决方案1】:

Instagram 更改了其网站,导致此 BeautifulSoup 错误。对 InstaRaider 的最新提交现在应该已经解决了这个问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-02-02
    • 2017-04-04
    • 1970-01-01
    • 1970-01-01
    • 2014-06-19
    • 2012-08-10
    • 2016-07-27
    • 1970-01-01
    相关资源
    最近更新 更多