instagram-crawler icon indicating copy to clipboard operation
instagram-crawler copied to clipboard

AttributeError

Open inhyek opened this issue 5 years ago • 1 comments

Thank you for sharing great code. recently I have been struggling with AttributeError, so i came here to ask question.

whenever i try to crawl more than 500 post, AttribueError comes up.

What I wrote is : $ python crawler.py hashtag -t paris -n 10000 -o ./output

and Error message is :

AttributeError: 'NoneType' object has no attribute 'get_attribute'

File "C:\Users\inhye\projects\crawler\ins-crawler\inscrawler\crawler.py", line 155, in _get_posts_full cur_key = ele_a_datetime.get_attribute('href')

I have been trying to fix this problem for 3 weeks but it was not sucessful. I wonder if there is some way to solve this problem

inhyek avatar Apr 02 '19 08:04 inhyek

Hi @inhyek,

Did you modify the code? It shouldn't run into the function _get_posts_full if you are using hashtag cmd.

huaying avatar Apr 04 '19 06:04 huaying