4 changed files with 49 additions and 2 deletions
@ -0,0 +1,23 @@ |
|||||||
|
FROM node:14.2-alpine |
||||||
|
MAINTAINER Jørgen Sverre Lien Sellæg <jorgen@guut.org> |
||||||
|
|
||||||
|
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \ |
||||||
|
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser |
||||||
|
|
||||||
|
RUN apk add --no-cache \ |
||||||
|
chromium \ |
||||||
|
bash \ |
||||||
|
imagemagick \ |
||||||
|
graphicsmagick \ |
||||||
|
nss \ |
||||||
|
freetype \ |
||||||
|
freetype-dev \ |
||||||
|
harfbuzz \ |
||||||
|
ca-certificates \ |
||||||
|
ttf-freefont |
||||||
|
|
||||||
|
WORKDIR "/app" |
||||||
|
USER node |
||||||
|
COPY --chown=node:node ./scrape.sh /scrape.sh |
||||||
|
|
||||||
|
CMD ["/scrape.sh"] |
||||||
@ -1,4 +1,20 @@ |
|||||||
# Kultar - event calendar |
# Facebook event scraper |
||||||
|
|
||||||
|
A simple facebook event scraper written with puppeteer |
||||||
|
|
||||||
## Introduction |
## Introduction |
||||||
This is an simple application that should scrape facebook events from kulturvarsel page on facebook |
|
||||||
|
Please note that terms and condition apply from facebook and this should only be |
||||||
|
used if written consent is provided by facebook. However it will work without. |
||||||
|
|
||||||
|
## Usage |
||||||
|
|
||||||
|
### Alpine docker image is provided |
||||||
|
|
||||||
|
```sh |
||||||
|
docker build --tag facebook-scraper . |
||||||
|
docker run \ |
||||||
|
-v "$(pwd):/app" \ |
||||||
|
--cap-add SYS_ADMIN \ |
||||||
|
facebook-scraper |
||||||
|
``` |
||||||
|
|||||||
Loading…
Reference in new issue