TL;DR (Too long didn't read) is a service to summarize text with a given website.
Install requirements in requirements.txt
with pip
pip install -r requirements.txt
Then load up your favorite python IDE and run main.py
or use your terminal
python main.py
Send a POST
request to the local flask application in page /sum
with the following:
Content-Type: application/x-www-form-urlencoded
site-language=english
url=[your url here]
sentences=5
cached=true
site-language
is the language the selected website uses, changing this to another language may mess up the summarization.
url
is your chosen url.
sentences
(Optional) tells how much sentences you want to receive back (Defaults to 10 if not provided.)
cached
(Optional) enables or disables google's cached save of the url (useful if the website has anti-bot measures in place, or keep receiving an error.)
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.