All Projects → eisenjulian → fb-page-chat-download

eisenjulian / fb-page-chat-download

Licence: AGPL-3.0 License
Python script to download messages from a Facebook page to a CSV file

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to fb-page-chat-download

Jobfunnel
Scrape job websites into a single spreadsheet with no duplicates.
Stars: ✭ 1,528 (+2896.08%)
Mutual labels:  scraper, csv
Finviz
Unofficial API for finviz.com
Stars: ✭ 493 (+866.67%)
Mutual labels:  scraper, csv
Youtubetospotify
A Python script to fetch tracks of music channels on Youtube, find them on Spotify and add them to a playlist
Stars: ✭ 33 (-35.29%)
Mutual labels:  csv, python-script
yt-videos-list
Create and **automatically** update a list of all videos on a YouTube channel (in txt/csv/md form) via YouTube bot with end-to-end web scraping - no API tokens required. Multi-threaded support for YouTube videos list updates.
Stars: ✭ 64 (+25.49%)
Mutual labels:  scraper, csv
stock-market-scraper
Scraps historical stock market data from Yahoo Finance (https://finance.yahoo.com/)
Stars: ✭ 110 (+115.69%)
Mutual labels:  scraper, csv
Google2csv
Google2Csv a simple google scraper that saves the results on a csv/xlsx/jsonl file
Stars: ✭ 145 (+184.31%)
Mutual labels:  scraper, csv
Ssl Checker
Python script that collects SSL/TLS information from hosts
Stars: ✭ 94 (+84.31%)
Mutual labels:  csv, python-script
kick-off-web-scraping-python-selenium-beautifulsoup
A tutorial-based introduction to web scraping with Python.
Stars: ✭ 18 (-64.71%)
Mutual labels:  scraper, csv
pypi-tools
Command-line Python scripts to do things with PyPI
Stars: ✭ 18 (-64.71%)
Mutual labels:  csv, python-script
Spydan
A web spider for shodan.io without using the Developer API.
Stars: ✭ 30 (-41.18%)
Mutual labels:  scraper, python-script
Scraper-Projects
🕸 List of mini projects that involve web scraping 🕸
Stars: ✭ 25 (-50.98%)
Mutual labels:  scraper
plugin.video.covenant
Covenant Kodi Addon Development - Kodi is a registered trademark of the XBMC Foundation. We are not connected to or in any other way affiliated with Kodi - DMCA: [email protected]
Stars: ✭ 24 (-52.94%)
Mutual labels:  scraper
safe-airdrop
A Gnosis Safe app for distributing tokens from CSV transfer files.
Stars: ✭ 32 (-37.25%)
Mutual labels:  csv
qcache
In memory cache server with query capabilities
Stars: ✭ 36 (-29.41%)
Mutual labels:  csv
peeling-onions
A repository to store Deep Web (onion domain) crawler, scraper, and NLP tools for Tor network.
Stars: ✭ 18 (-64.71%)
Mutual labels:  scraper
evine
Interactive CLI Web Crawler
Stars: ✭ 140 (+174.51%)
Mutual labels:  scraper
metacritic api
PHP Metacritic API - Mirrored by my GitLab
Stars: ✭ 31 (-39.22%)
Mutual labels:  scraper
datapackage-go
A Go library for working with Data Package.
Stars: ✭ 22 (-56.86%)
Mutual labels:  csv
covid-19
Current and historical coronavirus covid-19 confirmed, recovered, deaths and active case counts segmented by country and region. Includes csv, json and sqlite data along with an interactive website explorer.
Stars: ✭ 15 (-70.59%)
Mutual labels:  scraper
metafetch
NodeJS package that fetches a given URL's title, description, images, links etc.
Stars: ✭ 21 (-58.82%)
Mutual labels:  scraper

fb-page-chat-download

Python script to download message history from a Facebook page you manage to a CSV file. It uses the latest Graph API version available at the time of writing which is v2.6. I hacked this together in a few hours, contributions are always appreciated.

How to use:

  • Go to https://developers.facebook.com/tools/explorer and click 'Get User Access Token'
  • Make sure to check 'manage_pages' and 'read_page_mailboxes'
  • Switch to a page that you want to scrape
  • Get the page_id and the access token to pass as parameters to this script

This token will expire in an hour, alternatively you can create or use your app and grant the app those same permitions.

Dependencies: A python 3 env

pip install unidecode
pip install requests

Or alternatively do pipenv install if you are using pipenv

Then run it using:

python fb-page-chat-download/run.py <PAGE_ID> <OUTPUT_FILE> <ACCESS_TOKEN>

Optional parameters to filter by time are added. Currently by default the last 500 conversations threads are scraped entirely.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].