google-code-export / fanficdownloader

Automatically exported from code.google.com/p/fanficdownloader
0 stars 0 forks source link

won't download AO3 fics rated Mature #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Are you using the CLI, web service or calibre plugin?
CLI

What is the story URL?
http://archiveofourown.org/works/114938

What is the output format you used?
html

What steps will reproduce the problem?
the usual downloading process

What is the expected output? What do you see instead?
Here is the error output:

@:~/ffddl/fanficdownloader-4.4.31$ python downloader.py -f html 
http://archiveofourown.org/works/114938
FFDL:INFO:adapter_archiveofourownorg.py(134):url: 
http://archiveofourown.org/works/114938/navigate
FFDL:INFO:adapter_archiveofourownorg.py(135):metaurl: 
http://archiveofourown.org/works/114938
FFDL:WARNING:base_adapter.py(179):Caught an exception reading URL: 
http://archiveofourown.org/works/114938/navigate  Exception <urlopen error 
[Errno 111] Connection refused>.
FFDL:WARNING:base_adapter.py(179):Caught an exception reading URL: 
http://archiveofourown.org/works/114938/navigate  Exception <urlopen error 
[Errno 111] Connection refused>.
FFDL:WARNING:base_adapter.py(179):Caught an exception reading URL: 
http://archiveofourown.org/works/114938/navigate  Exception <urlopen error 
[Errno 111] Connection refused>.
FFDL:WARNING:base_adapter.py(179):Caught an exception reading URL: 
http://archiveofourown.org/works/114938/navigate  Exception <urlopen error 
[Errno 111] Connection refused>.
FFDL:ERROR:base_adapter.py(181):Giving up on 
http://archiveofourown.org/works/114938/navigate
FFDL:ERROR:base_adapter.py(182):<urlopen error [Errno 111] Connection refused>
Traceback (most recent call last):
  File "/home//ffddl/fanficdownloader-4.4.31/fanficdownloader/adapters/base_adapter.py", line 176, in _fetchUrl
    return self._decode(self._fetchUrlRaw(url,parameters))
  File "/home//ffddl/fanficdownloader-4.4.31/fanficdownloader/adapters/base_adapter.py", line 165, in _fetchUrlRaw
    return self.opener.open(url.replace(' ','%20')).read()
  File "/usr/lib/python2.7/urllib2.py", line 400, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 418, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 1207, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open
    raise URLError(err)
URLError: <urlopen error [Errno 111] Connection refused>
Traceback (most recent call last):
  File "downloader.py", line 246, in <module>
    main()
  File "downloader.py", line 180, in main
    adapter.getStoryMetadataOnly()
  File "/home//ffddl/fanficdownloader-4.4.31/fanficdownloader/adapters/base_adapter.py", line 238, in getStoryMetadataOnly
    self.extractChapterUrlsAndMetadata()
  File "/home//ffddl/fanficdownloader-4.4.31/fanficdownloader/adapters/adapter_archiveofourownorg.py", line 138, in extractChapterUrlsAndMetadata
    data = self._fetchUrl(url)
  File "/home//ffddl/fanficdownloader-4.4.31/fanficdownloader/adapters/base_adapter.py", line 183, in _fetchUrl
    raise(excpt)
urllib2.URLError: <urlopen error [Errno 111] Connection refused>

What version of the product are you using? On what operating system?
fanficdownloader-4.4.31, ubuntu 12.04

Please provide any additional information below.
The error is positively perplexing, because 1) it wasn't there in the previous 
versions and 2) is_adult:true is there in both the default and personal.ini

Original issue reported on code.google.com by amelie...@web.de on 1 Nov 2012 at 9:16

GoogleCodeExporter commented 9 years ago
I apologize, I jumped to conclusions. The issue has been resolved. Haven't been 
able to find out just how or why the problem cropped up, as everything else was 
working fine, but a restart of my PC solved it.

Original comment by amelie...@web.de on 1 Nov 2012 at 11:26

GoogleCodeExporter commented 9 years ago
See where the error code says "Connection refused"?  That usually indicates 
network issues, not software issues.

Original comment by retiefj...@gmail.com on 1 Nov 2012 at 3:18

GoogleCodeExporter commented 9 years ago
Yes, no, I apparently also copied the wrong error message here, I realize only 
now. Sorry. -.-' I tried to download a couple different fics at the time, one 
was this, and another gave out an error message along the lines of view adult 
false or something, (I don't remember the exact phrasing, unfortunately) so I 
assumed it refused to download because of the rating. (Especially since I 
immediately tried to download using the web client and had no problems at all.) 
Turns out that it was a very strange system problem on my end that resolved 
itself after a restart.

Again, sorry for jumping the gun.

Original comment by amelie...@web.de on 1 Nov 2012 at 7:12