A Python parser that extracts the info you want from an official downloaded facebook archive
Made by Julián Caro Linares
- email: [email protected]
- twitter: @jcarolinares
#How to use Python version and libraries:
- Python 3
- BeautifulSoup
First of all, if you don't have Python 3.X on your computer, you'll need to install it.
You'll also need the library BeautifulSoup:
$ apt-get install python-bs4
Or
$ pip install beautifulsoup4
After that, you'll need to download your Facebook data.
Follow the official Facebook guide, section "Download info":
"Download Your Info: This includes a lot of the same information available to you in your account and activity log, including your Timeline info, posts you have shared, messages, photos and more. Additionally, it includes information that is not available simply by logging into your account, like the ads you have clicked on, data like the IP addresses that are logged when you log into or out of Facebook, and more. To download your information, go to your Settings and click Download a copy of your Facebook data."
You'll probably have to wait an email from Faccebook with the data link.
When you had downloaded your facebook data, extract the file in the same folder of this program.
Now executes the python program "facebook_data_extractor.py" using python3:
-
Your facebook name ID is the name that comes in your facebook data folder: In the case "facebook-yournamessurnames" you should write "yournamessurnames"
-
Write the keywords for your search separated with commas, for example, "train,happy,dog"
If the program founds comments that match these keywords it'll show them in the terminal.
You also have a new file called "timeline_results-yourkeywords.txt" where you have all the search results with their date.
=============
Facebook data extractor por Julián Caro Linares licensed by Creative Commons Attribution-ShareAlike 4.0 International License.