Created
March 28, 2019 03:58
-
-
Save kunday/7928be9889504956839fdbfe1d89f8c8 to your computer and use it in GitHub Desktop.
Example Lambda function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from newspaper import Article | |
| import dateutil.parser | |
| import time | |
| def lambda_handler(event, context): | |
| url = event['url'] | |
| article = Article(url, keep_article_html=True) | |
| return article.text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment