Guys, look this :
http://stackoverflow.com/questions/27447399/scrapy-export-empty-csv
LOOK HOW BEAUTIFUL BECAME :
from bomnegocio.items import BomnegocioItem
import scrapy
class bomnegocioSpider(scrapy.Spider):
name = 'bomnegocio'
allowed_domains = ["bomnegocio.com"]
start_urls = [
"http://sp.bomnegocio.com/regiao-de-bauru-e-marilia/eletrodomesticos/fogao-industrial-itajobi-4-bocas-c-forno-54183713"
]
def parse(self,response):
print "=====> Start data extract ...."
yield BomnegocioItem(
title=response.xpath("//*[@id='ad_title']/text()").extract()[0]
)
print "=====> Finish data extract."
$ nano data.csv
title
"
Fogão industrial itajobi 4 bocas c/ forno
- "
AAAAAA I LOVE PROGRAMMING !!!!!
THANK'S EVERYBODY =D
Em sexta-feira, 12 de dezembro de 2014 14h12min09s UTC-2, Pedro Castro
escreveu:
>
> Hi, everbody.
>
> My question is the following : scrapy export empty csv.
>
> I try to post my code here, but became confused.
>
> My doubt on the stackoverflow :
>
> http://stackoverflow.com/questions/27447399/scrapy-export-empty-csv
>
>
> Thank you for your attention and I now look forward to hearing your views.
>
>
--
You received this message because you are subscribed to the Google Groups
"scrapy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/scrapy-users.
For more options, visit https://groups.google.com/d/optout.