我的 InstaRaider 补丁上的错误
Bug on My InstaRaider Patch
我从 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'
Instagram 更改了其网站,导致此 BeautifulSoup 错误。 InstaRaider 的最新提交现在应该已经解决了这个问题。
我从 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'
Instagram 更改了其网站,导致此 BeautifulSoup 错误。 InstaRaider 的最新提交现在应该已经解决了这个问题。