Using scrapy to download htm format files xpath Error

I'm very New to Python and Scrapy. I can able to download all the htm files in current page link from given URL. But If i gave the overall search (previous) pagelink. Its shows [Errno 2] No such file or directory: . I think I have done mistake in Xpath,

Here is My Code

import scrapy
from scrapy.http import Request
class pwc_tax(scrapy.Spider):
name = "pwc_tax"

allowed_domains = ["", '', '']
start_urls = [""]

def parse(self, response):
    # extract search results
    for link in response.xpath('//div[@id="seriesDiv"]//table[@class="tableFile2"]/a/@href').extract():
        req = Request(url=link, callback=self.parse_page)
        yield req

def parse_page(self, response):
    # parse each search result here
    pdf_files = response.xpath('//div[@class="bluerow"]/a/@href').extract()
    # base url wont be part of this pdf_files
    # sample: [u'/documents/exhibit1047_020218.htm']
    # need to add at the beginning of each url
    # response.urljoin() will do the task for you
    for pdf in pdf_files:
        if pdf.endswith('.htm'):
            pdf_url = response.urljoin(pdf)
            req = Request(url=pdf_url, callback=self.save_pdf)
            yield req

def save_pdf(self, response):
    path = response.url.split('/')[-1]'Saving PDF %s', path)
    with open(path, 'wb') as f:

Anyone can Help me with this please? Thanks in Advance.