I'm trying to scrape this website
http://www.gramfeed.com/instagram/tags#Andorra
and am trying to get all the data from the posts. This is what I'm trying but unfortunately posts isn't getting the list of all posts. Any idea what I'm doing wrong? Thanks!
class GramfeedSpider(Spider):
name = "gramfeed"
allowed_domains = ["gramfeed.com"]
start_urls = ["http://www.gramfeed.com/instagram/tags#Andorra"]
def parse(self, response):
"""
The lines below is a spider contract. For more info see:
http://doc.scrapy.org/en/latest/topics/contracts.html
@url http://www.gramfeed.com/instagram/tags#Andorra
@scrapes name
"""
sel = Selector(response)
posts = sel.xpath('//div[@id="content"]/div')
#posts = sel.xpath('//div[@id="content"]/div[@class="grid-cell"]')
#posts = sel.xpath('//div[@id="content"]/div[@onclick="showPhoto(0)"]')
print "@@@@@@"
print posts
print "@@@@@@"