Skip to content

Commit

Permalink
⚗️ Try fixing lxml on Lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
jh0ker committed Nov 3, 2023
1 parent c30f818 commit 330de62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ddj_cloud/scrapers/talsperren/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Load lxml because for some reason bs4 doesn't find it otherwise?
from lxml import etree

# Ensure that federation subclasses are loaded
from . import federations
3 changes: 3 additions & 0 deletions serverless.part.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ custom:
cacheLocation: "./.serverless-python-cache"
staticCacheMaxVersions: 1

# Needed for lxml to work?
pipCmdExtraArgs: ["--platform manylinux2014_x86_64", "--only-binary=:all:"]

customDomainBaseNews: scrapers.data.wdr.news
customDomainBaseWdrDe: scrapers.data.wdr.de
acmCertificateId: 09a7667f-ce0e-4ca7-8ee3-31ba79f75f80
Expand Down

0 comments on commit 330de62

Please sign in to comment.