Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. class EmailScraper(scrapy.Spider):
  2. name = "emails"
  3. #allowed_domains = []
  4.  
  5. def start_requests(self):
  6. self.inf = DataInterface()
  7.  
  8. df = self.inf.searchData()
  9.  
  10. row = df.loc[1]
  11. print(row)
  12. req = scrapy.Request(url=row['Website'], callback=self.parse,
  13. cb_kwargs={'index': 1, 'depth': 0,
  14. 'firstName': row['Executive First Name'],
  15. 'lastName': row['Executive Last Name'],
  16. 'found': {}, 'title': row['Executive Title']})
  17. yield req
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement