# http://library.bjp.org/jspui/browse?type=title&sort_by=1&order=ASC&rpp=100&etal=0&submit_browse=Update

import scrapy


class BooksListSpider(scrapy.Spider):
    name = "books_list"
    start_urls = [
        # - Sorting by title (1)
        # - in order Ascending (ASC)
        # - Results/Page 100 (rpp)
        # - Authors/Record: All
        # - Offset 0 (first page)
        # - rpp = Results Per Page = 2642 (to get all books at once)
        # - etal = Et al. = "et alia" = "and others" = authors + contributors in this website
        'http://library.bjp.org/jspui/browse?type=title&sort_by=1&order=ASC&rpp=2642&etal=-1&null=&offset=0'
    ]

    def parse(self, response):
        filename = 'books-list.html'
        with open(filename, 'wb') as f:
            f.write(response.body)
        self.log('Saved file %s' % filename)

3183db5728b5091697f6966e1f80356b8376be0b
<mask token>


class BooksListSpider(scrapy.Spider):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class BooksListSpider(scrapy.Spider):
    <mask token>
    <mask token>

    def parse(self, response):
        filename = 'books-list.html'
        with open(filename, 'wb') as f:
            f.write(response.body)
        self.log('Saved file %s' % filename)

<mask token>


class BooksListSpider(scrapy.Spider):
    name = 'books_list'
    start_urls = [
        'http://library.bjp.org/jspui/browse?type=title&sort_by=1&order=ASC&rpp=2642&etal=-1&null=&offset=0'
        ]

    def parse(self, response):
        filename = 'books-list.html'
        with open(filename, 'wb') as f:
            f.write(response.body)
        self.log('Saved file %s' % filename)

import scrapy


class BooksListSpider(scrapy.Spider):
    name = 'books_list'
    start_urls = [
        'http://library.bjp.org/jspui/browse?type=title&sort_by=1&order=ASC&rpp=2642&etal=-1&null=&offset=0'
        ]

    def parse(self, response):
        filename = 'books-list.html'
        with open(filename, 'wb') as f:
            f.write(response.body)
        self.log('Saved file %s' % filename)

# http://library.bjp.org/jspui/browse?type=title&sort_by=1&order=ASC&rpp=100&etal=0&submit_browse=Update

import scrapy


class BooksListSpider(scrapy.Spider):
    name = "books_list"
    start_urls = [
        # - Sorting by title (1)
        # - in order Ascending (ASC)
        # - Results/Page 100 (rpp)
        # - Authors/Record: All
        # - Offset 0 (first page)
        # - rpp = Results Per Page = 2642 (to get all books at once)
        # - etal = Et al. = "et alia" = "and others" = authors + contributors in this website
        'http://library.bjp.org/jspui/browse?type=title&sort_by=1&order=ASC&rpp=2642&etal=-1&null=&offset=0'
    ]

    def parse(self, response):
        filename = 'books-list.html'
        with open(filename, 'wb') as f:
            f.write(response.body)
        self.log('Saved file %s' % filename)
