I have a list of Facebook business pages that are public and can be access without having to login to Facebook.
If you view source you will see that the following several times on a page:
or if it was within the last 24 hours then it will just show hours
So if you can scrape that data from the business page, and scrape just the first instance of timestampContent, it will tell you when the last post was made.
That is exactly what I need to do, to find out from a list of 50-100 business pages, when the last post was. So loop through each URL, grab the first timestampContent and display the value i.e 1 hr or at 5:55 PM.
The output would be a table with a list of URLs in column 1 and the list of values (1 hr etc) next to each one in column B.
If the date is greater than 24 hours, then convert it to nearest day i.e if its 2.4 days make it 2 days, if its 2.6 days make it 3 days.
Then it would email this table to 2 emails. The script should be run once an hour on cron job (we can use an online service to run a cronjob and call the script page) between 9am and 2am
I do not have a Facebook API account but since this is public info and I am not using it for lead generating, its just for monitoring as we share businesses posts on our entertainment, I dont believe there should be an issue with this, if we can do it using an API account even better but I would need to run it through your account since I dont have one and there is a long wait so the above solution seems best.
About the recuiterMember since May 20, 2018 Kanchan Dwivedi
from Chuvashija, Russia