Python: How to scrape doctor.webmd.com with scrapy
It is example code to scrape it:
#!/usr/bin/env python3
import scrapy
class MySpider(scrapy.Spider):
name = 'myspider'
#allowed_domains = [''link'']
start_urls = ['https://doctor.webmd.com/find-a-doctor/specialty/psychiatry/arizona/phoenix?pagenumber=1']
def parse(self, response):
doctors_urls = (response.xpath('//*[@class="doctorName"]//@href').extract())
for doctor in doctors_urls:
doctor = response …
furas.pl