0

I need to scrape a URL to send content to my Lambda function. I am trying to achieve it by packaging BeautifulSoup with my Lambda function, but I am getting import errors like: cannot import name 'CharsetMetaAttributeValue' etc. I am not sure if bs4 should be used in AWS environment or not.

Any suggestions would be helpful.

3
  • Have you checked Lambda's docs? Commented Mar 28, 2018 at 3:46
  • @hjpotter92, checked Lambda docs, but seems aws doesn't provide any inbuilt thing for creating scraper. Commented Mar 28, 2018 at 4:26
  • What I meant was docs.aws.amazon.com/lambda/latest/dg/… Commented Mar 28, 2018 at 4:28

1 Answer 1

2

I am able to use compiled lxml package with Lambda function for web scraper. Compiled package is available at github this link: https://github.com/JFox/aws-lambda-lxml/tree/master/3.6.4

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.