Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't grab pages past page 1 #1

Closed
japanoise opened this issue Nov 6, 2021 · 0 comments · Fixed by #2
Closed

Can't grab pages past page 1 #1

japanoise opened this issue Nov 6, 2021 · 0 comments · Fixed by #2

Comments

@japanoise
Copy link
Contributor

$ python -m zerochan --title "Izumi Konata" -c
[2021-11-06 15:23:52.705522] [REQUEST]: Get page 1/23
[2021-11-06 15:23:53.333511] [PARSER]: Getting image 2556x3599 10566kB: https://static.zerochan.net/Izumi.Konata.full.3428965.jpg with size 2556x3599 10566
[2021-11-06 15:23:53.333537] [PARSER]: Getting image 531x745 317kB: https://static.zerochan.net/Izumi.Konata.full.3381253.jpg with size 531x745 317
[2021-11-06 15:23:53.333546] [PARSER]: Getting image 598x924 458kB: https://static.zerochan.net/Izumi.Konata.full.3357849.jpg with size 598x924 458
[2021-11-06 15:23:53.333552] [PARSER]: Getting image 848x1200 916kB: https://static.zerochan.net/Izumi.Konata.full.3304551.jpg with size 848x1200 916
[2021-11-06 15:23:53.333557] [PARSER]: Getting image 1191x1684 1772kB: https://static.zerochan.net/Izumi.Konata.full.3080143.png with size 1191x1684 1772
[2021-11-06 15:23:53.333563] [PARSER]: Getting image 1000x1642 1835kB: https://static.zerochan.net/Izumi.Konata.full.2994168.jpg with size 1000x1642 1835
[2021-11-06 15:23:53.333568] [PARSER]: Getting image 945x901 135kB: https://static.zerochan.net/Izumi.Konata.full.2721947.jpg with size 945x901 135
[2021-11-06 15:23:53.333573] [PARSER]: Getting image 1500x1500 2456kB: https://static.zerochan.net/Izumi.Konata.full.2710828.png with size 1500x1500 2456
[2021-11-06 15:23:53.333580] [PARSER]: Getting image 1500x1500 565kB: https://static.zerochan.net/Izumi.Konata.full.2710823.png with size 1500x1500 565
[2021-11-06 15:23:53.333585] [PARSER]: Getting image 808x1122 383kB: https://static.zerochan.net/Izumi.Konata.full.2652229.jpg with size 808x1122 383
[2021-11-06 15:23:53.333590] [PARSER]: Getting image 1000x1200 482kB: https://static.zerochan.net/Izumi.Konata.full.2566493.png with size 1000x1200 482
[2021-11-06 15:23:53.333595] [PARSER]: Getting image 780x545 272kB: https://static.zerochan.net/Izumi.Konata.full.2402751.jpg with size 780x545 272
[2021-11-06 15:23:53.333600] [PARSER]: Getting image 1920x1200 817kB: https://static.zerochan.net/Izumi.Konata.full.2314075.png with size 1920x1200 817
[2021-11-06 15:23:53.333605] [PARSER]: Getting image 1680x1050 460kB: https://static.zerochan.net/Izumi.Konata.full.2184423.jpg with size 1680x1050 460
[2021-11-06 15:23:53.333610] [PARSER]: Getting image 640x888 388kB: https://static.zerochan.net/Izumi.Konata.full.2015285.jpg with size 640x888 388
[2021-11-06 15:23:53.333614] [PARSER]: Getting image 600x600 205kB: https://static.zerochan.net/Izumi.Konata.full.1886848.jpg with size 600x600 205
[2021-11-06 15:23:53.333619] [PARSER]: Getting image 860x1214 701kB: https://static.zerochan.net/Izumi.Konata.full.1780621.jpg with size 860x1214 701
[2021-11-06 15:23:53.333624] [PARSER]: Getting image 848x1200 495kB: https://static.zerochan.net/Izumi.Konata.full.1752328.jpg with size 848x1200 495
[2021-11-06 15:23:53.333629] [PARSER]: Getting image 1647x916 1606kB: https://static.zerochan.net/Izumi.Konata.full.1710991.jpg with size 1647x916 1606
[2021-11-06 15:23:53.333634] [PARSER]: Getting image 1960x1240 3273kB: https://static.zerochan.net/Izumi.Konata.full.1615642.jpg with size 1960x1240 3273
[2021-11-06 15:23:53.333638] [PARSER]: Getting image 1024x911 223kB: https://static.zerochan.net/Izumi.Konata.full.1587182.jpg with size 1024x911 223
[2021-11-06 15:23:53.333643] [PARSER]: Getting image 600x600 297kB: https://static.zerochan.net/Izumi.Konata.full.1518316.jpg with size 600x600 297
[2021-11-06 15:23:53.333648] [PARSER]: Getting image 900x1260 258kB: https://static.zerochan.net/Izumi.Konata.full.1508713.jpg with size 900x1260 258
[2021-11-06 15:23:53.333653] [REQUEST]: Get page 2/23
Traceback (most recent call last):
  File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/chameleon/.local/lib/python3.9/site-packages/zerochan/__main__.py", line 136, in <module>
    data_page = get_pics(zerochan.page(i))
  File "/home/chameleon/.local/lib/python3.9/site-packages/zerochan/__main__.py", line 100, in get_pics
    return zerochan_instance.pics()
  File "/home/chameleon/.local/lib/python3.9/site-packages/zerochan/lib.py", line 124, in pics
    page = int(str_list[4])
ValueError: invalid literal for int() with base 10: 'of'

Maybe they moved the page number around?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant