Tabula-py - pages argument

AlliDeacon picture AlliDeacon · Jun 14, 2017 · Viewed 9k times · Source
tabula.convert_into(filename_final, (filename_zero + '.csv'), 
                    output_format="csv", pages="all")

How would I go about converting just pages 2 through the end? The "area" changes for the convert from page 1 through the rest of the pages.

I am using the Python wrapper tabula-py

Thanks in advance!

Answer

Paulo Scardine picture Paulo Scardine · Jun 14, 2017

According to the README, the pages argument can be:

pages (str, int, list of int, optional)
- An optional values specifying pages to extract from.
- It allows str, int, list of int.

Example: 1, '1-2,3', 'all' or [1,2]. Default is 1

So I guess you can try something like '2-99999'.