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

scribblehub returns a 403 error when downloading stories #876

Closed
kaidadragonfly opened this issue Aug 29, 2022 · 3 comments
Closed

scribblehub returns a 403 error when downloading stories #876

kaidadragonfly opened this issue Aug 29, 2022 · 3 comments

Comments

@kaidadragonfly
Copy link

$ fanficfare -d https://www.scribblehub.com/series/60207/twisted-destiny/
FFF: DEBUG: 2022-08-29 10:26:33,764: cli.py(230):     OS Version:macOS-12.5.1-x86_64-i386-64bit
FFF: DEBUG: 2022-08-29 10:26:33,765: cli.py(231): Python Version:3.9.13 (main, Aug 11 2022, 14:05:15)
[Clang 13.1.6 (clang-1316.0.21.2.5)]
FFF: DEBUG: 2022-08-29 10:26:33,765: cli.py(232):    FFF Version:4.15.0
FFF: DEBUG: 2022-08-29 10:26:33,789: configurable.py(1044): use_browser_cache:
FFF: DEBUG: 2022-08-29 10:26:33,790: configurable.py(1058): use_basic_cache:true
FFF: DEBUG: 2022-08-29 10:26:33,803: adapter_scribblehubcom.py(118): URL: https://www.scribblehub.com/series/60207/twisted-destiny/
FFF: DEBUG: 2022-08-29 10:26:33,803: fetcher.py(234):
========== MISS (GET) BasicCache
https://www.scribblehub.com/series/60207/twisted-destiny/
FFF: DEBUG: 2022-08-29 10:26:33,804: fetcher.py(469):
---------- REQ (GET) RequestsFetcher
https://www.scribblehub.com/series/60207/twisted-destiny/
FFF: DEBUG: 2022-08-29 10:26:33,891: fetcher.py(482): response code:403
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/fanficfare/fetcher.py", line 483, in request
    resp.raise_for_status() # raises RequestsHTTPError if error code.
  File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 943, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://www.scribblehub.com/series/60207/twisted-destiny/

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/fanficfare", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.9/site-packages/fanficfare/cli.py", line 344, in main
    dispatch(options, urls, passed_defaultsini, passed_personalini, warn, fail)
  File "/usr/local/lib/python3.9/site-packages/fanficfare/cli.py", line 320, in dispatch
    do_download(url,
  File "/usr/local/lib/python3.9/site-packages/fanficfare/cli.py", line 435, in do_download
    adapter.getStoryMetadataOnly()
  File "/usr/local/lib/python3.9/site-packages/fanficfare/adapters/base_adapter.py", line 313, in getStoryMetadataOnly
    self.doExtractChapterUrlsAndMetadata(get_cover=get_cover)
  File "/usr/local/lib/python3.9/site-packages/fanficfare/adapters/base_adapter.py", line 417, in doExtractChapterUrlsAndMetadata
    return self.extractChapterUrlsAndMetadata()
  File "/usr/local/lib/python3.9/site-packages/fanficfare/adapters/adapter_scribblehubcom.py", line 120, in extractChapterUrlsAndMetadata
    data = self.get_request(url)
  File "/usr/local/lib/python3.9/site-packages/fanficfare/requestable.py", line 114, in get_request
    return self.get_request_redirected(url,
  File "/usr/local/lib/python3.9/site-packages/fanficfare/requestable.py", line 106, in get_request_redirected
    (data,rurl) = self.configuration.get_fetcher().get_request_redirected(
  File "/usr/local/lib/python3.9/site-packages/fanficfare/fetcher.py", line 398, in get_request_redirected
    fetchresp = self.do_request('GET',
  File "/usr/local/lib/python3.9/site-packages/fanficfare/fetcher.py", line 240, in fetcher_do_request
    fetchresp = chainfn(
  File "/usr/local/lib/python3.9/site-packages/fanficfare/fetcher.py", line 136, in fetcher_do_request
    fetchresp = chainfn(
  File "/usr/local/lib/python3.9/site-packages/fanficfare/fetcher.py", line 371, in do_request
    fetchresp = self.request(method,url,
  File "/usr/local/lib/python3.9/site-packages/fanficfare/fetcher.py", line 504, in request
    raise exceptions.HTTPErrorFFF(
fanficfare.exceptions.HTTPErrorFFF: HTTP Error in FFF '403 Client Error: Forbidden for url: https://www.scribblehub.com/series/60207/twisted-destiny/'(403)
@JimmXinu
Copy link
Owner

Dunno what's going on with that. It fails in FFF CLI, but works in the Calibre plugin from the same computer. I don't see any difference between the headers I can control.

@JimmXinu
Copy link
Owner

JimmXinu commented Sep 2, 2022

Seems to be working again. Going to call it something in the network or on the server. And I don't think there's anything I could do about it.

@JimmXinu JimmXinu closed this as completed Sep 2, 2022
@mhussaincov93
Copy link

mhussaincov93 commented Jun 18, 2023 via email

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

No branches or pull requests

3 participants