yutkin / lenta.ru-news-dataset Goto Github PK
View Code? Open in Web Editor NEWCorpus of Russian news articles collected from Lenta.Ru
Corpus of Russian news articles collected from Lenta.Ru
Python 3.7,aiohttp==3.4.4. Возникла ошибка:
11-01-2019 18:51:24 - asyncio - ERROR @ Task exception was never retrieved
aiohttp.client_exceptions.ClientOSError: [Errno 1] [SSL: KRB5_S_INIT] application data after close notify (_ssl.c:2592). Полностью не скопировал ошибку.
Программа заработала после следующих манипуляций:
import uvloop
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
self._read_timeout = 20
self._conn_timeout = 20
self._connector = aiohttp.TCPConnector(
use_dns_cache=True, ttl_dns_cache=60 * 60, limit=512, ssl=False)
Обновил aiohttp до 4-й версии.
| tags | text | title | topic | url
0 | Общество | Миллиардер Илон Маск в резкой форме ответил бр... | Илон Маск назвал педофилом спасавшего детей из... | Мир | https://lenta.ru/news/2018/07/16/su57/
по данному урл совершенно другая новость, та же ошибка на всех следующих записях
concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
File "/usr/lib/python3.6/concurrent/futures/process.py", line 175, in _process_worker
r = call_item.fn(*call_item.args, **call_item.kwargs)
File "download_lenta.py", line 71, in parse_article_html
topic = doc_tree.find("a", "b-header-inner__block").get_text()
AttributeError: 'NoneType' object has no attribute 'get_text'
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "download_lenta.py", line 98, in fetch_all_news_on_page
processed_artile = future.result()
File "/usr/lib/python3.6/concurrent/futures/_base.py", line 425, in result
return self.__get_result()
File "/usr/lib/python3.6/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
AttributeError: 'NoneType' object has no attribute 'get_text'
16-07-2018 10:19:33 - LentaParser - ERROR @ Error while processing https://lenta.ru/news/2014/06/19/s5prime/
concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
File "/usr/lib/python3.6/concurrent/futures/process.py", line 175, in _process_worker
r = call_item.fn(*call_item.args, **call_item.kwargs)
File "download_lenta.py", line 67, in parse_article_html
paragraphs = doc_tree.find("div", attrs={"itemprop": "articleBody"}).find_all(
AttributeError: 'NoneType' object has no attribute 'find_all'
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "download_lenta.py", line 98, in fetch_all_news_on_page
processed_artile = future.result()
File "/usr/lib/python3.6/concurrent/futures/_base.py", line 425, in result
return self.__get_result()
File "/usr/lib/python3.6/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
AttributeError: 'NoneType' object has no attribute 'find_all'
Thank you for this useful dataset!
I used it in compression benchmarking:
https://www.overclock.net/threads/choosing-a-modern-archiver-what-matters-most.1792407/
I used it in browsing (Linux and Windows):
https://www.qb64.org/forum/index.php?topic=3518.msg134151#msg134151
If you have even bigger ones, I am ready to play with them :P
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.