Quote:
Originally Posted by rlh3
The "Get Story URLs from web page" appears to be broken again on Literotica. The error message says that there are "no valid story URLs on the given page."
A random author's page is attached.
http://www.literotica.com/stories/me...ge=submissions
Thanks.
PS I was the one who brought this up back in December, but unfortunately work took me away from the home computer for long enough for me to forget about it, so I never got around to testing the fix that Jimm made.
|
It looks like the links on the author submission page do not include the "http:" in the links.
JimmXinu: Adding the following near the start of "adapters.getClassFor" will fix this.
Code:
if fixedurl.startswith("//"):
fixedurl = "http:%s"%url
I think it fits in here as the method is already fixing the URL. Otherwise, it could be done in "geturls.get_urls_from_html" before the call to "adapters.getAdapter".