*This is my items.py:*

from scrapy.item import Item, Field

class Cvcrawler1(Item):
title = Field()
titel = Field()
strong = Field()
paragraaf = Field()
link = Field()

*This is my crawlcsv.py:*

from scrapy.spider import BaseSpider
from scrapy.selector import HtmlXPathSelector
from cvcrawler1.items import Cvcrawler1

class MySpider(BaseSpider):
name = "crawlcsv"
allowed_domains = ["http://www.monsterboard.nl/";]
f = open("url.txt")
start_urls = [url.strip() for url in f.readlines()]
f.close()
 def parse(self, response):
hxs = HtmlXPathSelector(response)
titles = hxs.select("//div[@class='body']")
items = []
for titles in titles:
item = JobCrawlItems()
item ["titel"] = titles.select("h2/text()").extract()
item ["strong"] = titles.select("p/strong/text()").extract()
item ["paragraaf"] = titles.select("p/text()").extract()

return items

*Command i use in cmd:*

Scrapy crawl crawlcsv -o data.csv -t csv

*How can I save the data it finds? what did i do wrong?*

-- 
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/groups/opt_out.

Reply via email to