View Code? Open in Web Editor
NEW
This project forked from jannikkeller/social-media-site-crawler
A crawling script for social networks like facebook or twitter to crawl the posts of specific corporate pages.
License: MIT License
social-media-site-crawler's Introduction
- Install virtualbox and vagrant:
sudo apt-get install virtualbox vagrant
- You will find all the necessary programms to run the scripts in vagrant.
- Use
vagrant up
to start vagrant
- Use
vagrant ssh
to login to your virtual machine.
- Use
composer install
in the command line to get the required packages.
- On Facebook create a test app and set the constants
APP_ID
and APP_SECRET
to the values you got from Facebook.
- On the command line
cd
into the src
folder of this repository.
- Get a temporary access token from the official page.
- Set the constant
ACCESS_TOKEN
in Crawler.php to the access token.
- Paste a file named
input.csv
into the src
folder containing the relevant page ids comma separated.
- Run
php -f Crawler.php
.
- A new file in
src
has been created named output.csv
.
social-media-site-crawler's People
Contributors
Watchers