Skip to content

Python scripts to fetch friends' birthdays from Facebook and get SMS notification for the birthday

Notifications You must be signed in to change notification settings

ani10030/scrap-facebook-birthdays

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

scrap-facebook-birthdays

Python scripts to perform the task in the order as below :
1. Scrap Facebook, fetch my Facebook friend birthdays and insert into database.
2. Fetch birthdays from database and send SMS reminder

import_birthdays.py : Script to import birthday data from Facebook
Note : You will need to get the URL for your Facebook account's calendar file. Click here to know how to retrieve your calendar file.
This script will take care of adding only new birthdays to your database from the calendar file. Also, if there are any updates in the calendar file to the existing data, it will be handled by this script

birthday_reminder.py : Script to check for today's birthdays and notify user with SMS
Note : This script uses Fast2SMS API to send SMS. You will need to setup your API key on Fast2SMS before sending SMS. Click here to see the code for sms_with_api.py

Scripts are developed with Python 2.7 and below libraries are REQUIRED for this script to work.
Use pip to install any missing library.
Example Usage :

pip install requests

Libraries Used :
1. MySQLdb
2. requests
3. smtplib

About

Python scripts to fetch friends' birthdays from Facebook and get SMS notification for the birthday

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages