The script should have an icon to click so that a file can be searched locally for upload on the server running the script.
4. get the name of each, click on it to get the number of friends, likes, city (address) and country the post it on MySQL table with the following columns: ID, account_type, keyword, city, country, friends (if person), likes (if page)
(Note: account type means you have to know whether it is an individual/personal, page, business etc.)
5. go to next item.
Remember this is a PHP/MySQL/Curl project. It is like mimicking what a real person does: a person logged into his account will search using a keyword, jots down the results, then goes to the next keyword.