Skip to content

Instantly share code, notes, and snippets.

@ismaelc
Created April 28, 2020 23:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ismaelc/ebbb3269d0a4053ec54a6011a9be2298 to your computer and use it in GitHub Desktop.
Save ismaelc/ebbb3269d0a4053ec54a6011a9be2298 to your computer and use it in GitHub Desktop.
>>> from pyteaser import SummarizeUrl
>>> url = 'http://www.huffingtonpost.com/2013/11/22/twitter-forward-secrecy_n_4326599.html'
>>> summaries = SummarizeUrl(url)
>>> print summaries
Output
[
"Twitter's move is the latest response from U.S. Internet firms following disclosures by former spy agency contractor Edward Snowden about widespread, classified U.S. government surveillance programs.",
"Since then, it has become clearer and clearer how important that step was to protecting our users' privacy.",
"The online messaging service, which began scrambling communications in 2011 using traditional HTTPS encryption, said on Friday it has added an advanced layer of protection for HTTPS known as 'forward secrecy'",
"'A year and a half ago, Twitter was first served completely over HTTPS,' the company said in a blog posting.",
"'I'm glad this is the direction the industry is taking.' (Reporting by Jim Finkle; editing by Andrew Hay)"
]
# ^ Manually escaped quotes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment