whatihavedone / lrc_fetcher

Generates .lrc files for your music library
26 stars 4 forks source link

Doesn't work #3

Open AihjawvBawiuojfvnW0of92 opened 1 year ago

AihjawvBawiuojfvnW0of92 commented 1 year ago

I installed everything and ran the file with some flac files in the same folder and no lrc files appeared, here is my log PS D:\Downloads> scrapy runspider lyrics_fetcher.py 2023-03-08 22:09:29 [scrapy.utils.log] INFO: Scrapy 2.8.0 started (bot: scrapybot) 2023-03-08 22:09:29 [scrapy.utils.log] INFO: Versions: lxml 4.9.1.0, libxml2 2.9.14, cssselect 1.2.0, parsel 1.7.0, w3lib 1.21.0, Twisted 22.2.0, Python 3.9.12 (main, Apr 4 2022, 05:22:27) [MSC v.1916 64 bit (AMD64)], pyOpenSSL 22.0.0 (OpenSSL 1.1.1t 7 Feb 2023), cryptography 36.0.0, Platform Windows-10-10.0.22621-SP0 Scaning library... 2023-03-08 22:09:29 [scrapy.crawler] INFO: Overridden settings: {'SPIDER_LOADER_WARN_ONLY': True} 2023-03-08 22:09:29 [py.warnings] WARNING: C:\Users\citru\miniconda3\lib\site-packages\scrapy\utils\request.py:232: ScrapyDeprecationWarning: '2.6' is a deprecated value for the 'REQUEST_FINGERPRINTER_IMPLEMENTATION' setting.

It is also the default value. In other words, it is normal to get this warning if you have not defined a value for the 'REQUEST_FINGERPRINTER_IMPLEMENTATION' setting. This is so for backward compatibility reasons, but it will change in a future version of Scrapy.

See the documentation of the 'REQUEST_FINGERPRINTER_IMPLEMENTATION' setting for information on how to handle this deprecation. return cls(crawler)

2023-03-08 22:09:29 [scrapy.utils.log] DEBUG: Using reactor: twisted.internet.selectreactor.SelectReactor 2023-03-08 22:09:29 [scrapy.extensions.telnet] INFO: Telnet Password: f28a4fcd40d9e47a 2023-03-08 22:09:29 [scrapy.middleware] INFO: Enabled extensions: ['scrapy.extensions.corestats.CoreStats', 'scrapy.extensions.telnet.TelnetConsole', 'scrapy.extensions.logstats.LogStats'] 2023-03-08 22:09:30 [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'] 2023-03-08 22:09:30 [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'] 2023-03-08 22:09:30 [scrapy.middleware] INFO: Enabled item pipelines: [] 2023-03-08 22:09:30 [scrapy.core.engine] INFO: Spider opened 2023-03-08 22:09:30 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min) 2023-03-08 22:09:30 [scrapy.extensions.telnet] INFO: Telnet console listening on 127.0.0.1:6023 2023-03-08 22:09:30 [scrapy.core.engine] DEBUG: Crawled (403) <GET https://genius.com/j-a-8823-lyrics> (referer: None) 2023-03-08 22:09:30 [scrapy.core.engine] DEBUG: Crawled (403) <GET https://genius.com/mxmtoon-prom-dress-lyrics> (referer: None) 2023-03-08 22:09:30 [scrapy.spidermiddlewares.httperror] INFO: Ignoring response <403 https://genius.com/j-a-8823-lyrics>: HTTP status code is not handled or not allowed 2023-03-08 22:09:30 [scrapy.spidermiddlewares.httperror] INFO: Ignoring response <403 https://genius.com/mxmtoon-prom-dress-lyrics>: HTTP status code is not handled or not allowed 2023-03-08 22:09:30 [scrapy.core.engine] INFO: Closing spider (finished) 2023-03-08 22:09:30 [scrapy.statscollectors] INFO: Dumping Scrapy stats: {'downloader/request_bytes': 468, 'downloader/request_count': 2, 'downloader/request_method_count/GET': 2, 'downloader/response_bytes': 16198, 'downloader/response_count': 2, 'downloader/response_status_count/403': 2, 'elapsed_time_seconds': 0.631938, 'finish_reason': 'finished', 'finish_time': datetime.datetime(2023, 3, 9, 3, 9, 30, 800385), 'httpcompression/response_bytes': 28859, 'httpcompression/response_count': 2, 'httperror/response_ignored_count': 2, 'httperror/response_ignored_status_count/403': 2, 'log_count/DEBUG': 3, 'log_count/INFO': 12, 'log_count/WARNING': 1, 'response_received_count': 2, 'scheduler/dequeued': 2, 'scheduler/dequeued/memory': 2, 'scheduler/enqueued': 2, 'scheduler/enqueued/memory': 2, 'start_time': datetime.datetime(2023, 3, 9, 3, 9, 30, 168447)} 2023-03-08 22:09:

whatihavedone commented 1 year ago

Hello from the logs it seems the script was not able to build the Genius URL using the files metadata. Can you check if the artist/song name tags are properly filled in the files?

<GET https://genius.com/j-a-8823-lyrics> (referer: None)
<GET https://genius.com/mxmtoon-prom-dress-lyrics> (referer: None)