request = Request('http://annapolis.craigslist.org/sof/', callback=self.
    parse_items)
return request

def parse_items(self, response):
    hxs = HtmlXPathSelector(response)
titles = hxs.select('//p')
items = []
for titles in titles:
    item = CraigslistItem()
item['title'] = titles.select('a/text()').extract()
item['link'] = titles.select('a/@href').extract()
items.append(item)
return items
Confused with Rules in Scrapy in python spider