2 changed files with 22 additions and 20 deletions
@ -1,41 +1,38 @@ |
|||||||
# Facebook event scraper |
# Facebook page events scraper |
||||||
|
Now you can get JSON representation of all events hosted by a Facebook page. |
||||||
A simple facebook event scraper written with node using puppeteer. |
|
||||||
|
|
||||||
## Introduction |
|
||||||
|
|
||||||
|
## Disclaimer |
||||||
Please note that terms and conditions apply from Facebook and this script should |
Please note that terms and conditions apply from Facebook and this script should |
||||||
only be used if written consent is provided by Facebook. |
only be used if written consent is provided by Facebook. |
||||||
|
|
||||||
## Dependencies for local install |
## Dependencies |
||||||
|
|
||||||
```sh |
```txt |
||||||
bash |
bash |
||||||
node > v10 |
node >= v10 |
||||||
yarn > # tested with 1.22 |
yarn |
||||||
|
google-chrome / chromium |
||||||
``` |
``` |
||||||
|
|
||||||
## Usage |
NOTE: You might want to set environment variables to use an existing chrome |
||||||
|
install. (Voluntary) |
||||||
```sh |
``` sh |
||||||
./scrape --help |
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true |
||||||
|
export PUPPETEER_EXECUTABLE_PATH=/bin/google-chrome |
||||||
``` |
``` |
||||||
|
|
||||||
## Examples |
## Usage |
||||||
|
|
||||||
```sh |
```sh |
||||||
./scrape PlanetRammstein |
./scrape PlanetRammstein |
||||||
./scrape --skip-upcoming-events --past-events PlanetRammstein |
./scrape --skip-upcoming-events --past-events PlanetRammstein |
||||||
``` |
``` |
||||||
|
|
||||||
### Alpine docker image is provided |
### Usage with docker |
||||||
|
|
||||||
```sh |
```sh |
||||||
rm -rf node_modules # If switching from a local install |
docker build --tag facebook-page-events-scraper . |
||||||
docker build --tag facebook-scraper . |
|
||||||
docker run \ |
docker run \ |
||||||
--rm \ |
--rm \ |
||||||
--cap-add SYS_ADMIN \ |
--cap-add SYS_ADMIN \ |
||||||
facebook-scraper \ |
facebook-page-events-scraper \ |
||||||
scrape PlanetRammstein |
scrape PlanetRammstein |
||||||
``` |
``` |
||||||
|
|||||||
Loading…
Reference in new issue