Skip to content

ZveRuss/getReadableTextByURL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

Module for processing the text of the article by URL, based on Requests and BeautifulSoup4 libraries. Contain class MiniReadability with next methods:

  • get_text() - return clear text of article
  • write_in_file(text) - write file in path, stored in self.path: "[CUR_DIR]/host/path_item1/path_item2/..." with filename, stored in MiniReadability.filename. Saves to utf-8.

Example for using: "python readable.py https://lenta.ru/news/2019/01/22/brain/"

Tested on articles:

Further development plans:

  • creating a settings file with site processing templates for more accurate selection of a clean text of the article without loss
  • bulk processing URL at a time

About

App for create mini-Readability docs from URL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages