Comments (4)
2018-12-01 08:16:11 [scrapy.utils.log] INFO: Scrapy 1.5.1 started (bot: safaribooks)
2018-12-01 08:16:11 [scrapy.utils.log] INFO: Versions: lxml 4.2.5.0, libxml2 2.9.8, cssselect 1.0.3, parsel 1.5.1, w3lib 1.19.0, Twisted 16.4.1, Python 3.6.7 (default, Nov 16 2018, 06:56:26) - [GCC 6.4.0], pyOpenSSL 18.0.0 (OpenSSL 1.0.2q 20 Nov 2018), cryptography 2.4.2, Platform Linux-4.15.0-39-generic-x86_64-with
2018-12-01 08:16:11 [scrapy.crawler] INFO: Overridden settings: {'BOT_NAME': 'safaribooks', 'DOWNLOAD_DELAY': 0.25, 'NEWSPIDER_MODULE': 'safaribooks.spiders', 'SPIDER_MODULES': ['safaribooks.spiders']}
2018-12-01 08:16:11 [scrapy.middleware] INFO: Enabled extensions:
['scrapy.extensions.corestats.CoreStats',
'scrapy.extensions.telnet.TelnetConsole',
'scrapy.extensions.memusage.MemoryUsage',
'scrapy.extensions.logstats.LogStats']
2018-12-01 08:16:11 [SafariBooks] INFO: Using /tmp/tmpawsy524_
as temporary directory
2018-12-01 08:16:11 [scrapy.middleware] INFO: Enabled downloader middlewares:
['scrapy.downloadermiddlewares.httpauth.HttpAuthMiddleware',
'scrapy.downloadermiddlewares.downloadtimeout.DownloadTimeoutMiddleware',
'scrapy.downloadermiddlewares.defaultheaders.DefaultHeadersMiddleware',
'scrapy.downloadermiddlewares.useragent.UserAgentMiddleware',
'scrapy.downloadermiddlewares.retry.RetryMiddleware',
'scrapy.downloadermiddlewares.redirect.MetaRefreshMiddleware',
'scrapy.downloadermiddlewares.httpcompression.HttpCompressionMiddleware',
'scrapy.downloadermiddlewares.redirect.RedirectMiddleware',
'scrapy.downloadermiddlewares.cookies.CookiesMiddleware',
'scrapy.downloadermiddlewares.httpproxy.HttpProxyMiddleware',
'scrapy.downloadermiddlewares.stats.DownloaderStats']
2018-12-01 08:16:11 [scrapy.middleware] INFO: Enabled spider middlewares:
['scrapy.spidermiddlewares.httperror.HttpErrorMiddleware',
'scrapy.spidermiddlewares.offsite.OffsiteMiddleware',
'scrapy.spidermiddlewares.referer.RefererMiddleware',
'scrapy.spidermiddlewares.urllength.UrlLengthMiddleware',
'scrapy.spidermiddlewares.depth.DepthMiddleware']
2018-12-01 08:16:11 [scrapy.middleware] INFO: Enabled item pipelines:
[]
2018-12-01 08:16:11 [scrapy.core.engine] INFO: Spider opened
2018-12-01 08:16:11 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2018-12-01 08:16:11 [scrapy.extensions.telnet] DEBUG: Telnet console listening on 127.0.0.1:6023
2018-12-01 08:16:12 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to <GET https://www.oreilly.com> from <GET https://www.safaribooksonline.com>
2018-12-01 08:16:12 [scrapy.core.engine] DEBUG: Crawled (200) <GET https://www.oreilly.com> (referer: None)
2018-12-01 08:16:12 [scrapy.core.scraper] ERROR: Spider error processing <GET https://www.oreilly.com> (referer: None)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/twisted/internet/defer.py", line 587, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/app/safaribooks/spiders/safaribooks.py", line 103, in parse
callback=self.after_login
File "/usr/local/lib/python3.6/site-packages/scrapy/http/request/form.py", line 48, in from_response
form = _get_form(response, formname, formid, formnumber, formxpath)
File "/usr/local/lib/python3.6/site-packages/scrapy/http/request/form.py", line 77, in _get_form
raise ValueError("No
ValueError: No element found in <200 https://www.oreilly.com>
2018-12-01 08:16:12 [scrapy.core.engine] INFO: Closing spider (finished)
2018-12-01 08:16:12 [SafariBooks] INFO: Did not even got toc, ignore generated file operation.
2018-12-01 08:16:12 [scrapy.statscollectors] INFO: Dumping Scrapy stats:
{'downloader/request_bytes': 438,
'downloader/request_count': 2,
'downloader/request_method_count/GET': 2,
'downloader/response_bytes': 8789,
'downloader/response_count': 2,
'downloader/response_status_count/200': 1,
'downloader/response_status_count/302': 1,
'finish_reason': 'finished',
'finish_time': datetime.datetime(2018, 12, 1, 8, 16, 12, 900070),
'log_count/DEBUG': 3,
'log_count/ERROR': 1,
'log_count/INFO': 9,
'memusage/max': 55107584,
'memusage/startup': 55107584,
'response_received_count': 1,
'scheduler/dequeued': 2,
'scheduler/dequeued/memory': 2,
'scheduler/enqueued': 2,
'scheduler/enqueued/memory': 2,
'spider_exceptions/ValueError': 1,
'start_time': datetime.datetime(2018, 12, 1, 8, 16, 11, 408246)}
2018-12-01 08:16:12 [scrapy.core.engine] INFO: Spider closed (finished)
/app/converted
Traceback (most recent call last):
File "/usr/local/bin/safaribooks", line 11, in
load_entry_point('safaribooks', 'console_scripts', 'safaribooks')()
File "/app/safaribooks/main.py", line 121, in main
args.func(args)
File "/app/safaribooks/main.py", line 60, in download
convert_to_mobi(args)
File "/app/safaribooks/main.py", line 49, in convert_to_mobi
)[0]
IndexError: list index out of range
from safaribooks.
The login page was moved to : https://www.safaribooksonline.com/accounts/login/
from safaribooks.
Fixed:
#57
from safaribooks.
thanks
from safaribooks.
Related Issues (20)
- CentOS 7 Spider not found: SafariBooks HOT 2
- ERROR: Spider error processing <GET HOT 1
- DOWNLOAD_DELAY parameter seems not to be respected
- File is not opened in binary mode, which lead to some data not able to be saved. HOT 1
- invalid choice HOT 2
- get book id: 9781492034131, cause error HOT 1
- Error: 'str' object has no attribute 'decode' HOT 2
- Publish to Docker Hub HOT 1
- After Downloading Book is in Epub Format it given an Error , I gave parameter Download HOT 1
- ImportError: no module named win32api HOT 1
- 401 errors HOT 2
- codec can't encode character u'\xae' (book id 9780133040036)
- Is there any way to export books as HTML?[Feature Request] HOT 1
- ERROR: Spider error processing <GET https://www.safaribooksonline.com/> (referer: None)
- Can not crawl from safaribooksonline http 404. Double // in http://xxx//api/v1
- epub not downloaded (just title) HOT 21
- Not Working Anymore HOT 4
- 403 when fetching chapters from API
- ValueError: No <form> element found in <200 https://www.oreilly.com/member/login/?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from safaribooks.