pySocialWatcher
pySocialWatcher copied to clipboard
ads API v8.0
Facebook updated their ads API to v8.0 in August of this year. Have you managed to make pySocialWatcher run with these changes? Changing the 3 constants as you mentioned in the readme unfortunately didn't do the trick.
Thanks!
Hi, I'm not working with PySocialWatcher at moment besides accepting pull requests. Thus, I'm wondering if someone could help me with the update given Facebook's constant API update.
Matheus Araújo M.Sc in Computer Science at UFMG Pursuing Ph.D. at the University of Minnesota.
On Sat, Sep 26, 2020 at 5:58 AM Gustav-Win [email protected] wrote:
Facebook updated their ads API to v8.0 in August of this year. Have you managed to make pySocialWatcher run with these changes? Changing the 3 constants as you mentioned in the readme unfortunately didn't do the trick.
Thanks!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/maraujo/pySocialWatcher/issues/26, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB62ZIL2OOSYGZ5TEZMMQPTSHXCMVANCNFSM4R22P2YA .
Hi folks,
@Gustav-Win, I have recently made some improvements that you might be interested in. Please have a look at my latest commits at https://github.com/joaopalotti/pySocialWatcher. @maraujo, I will eventually create a PR when I get some time to document it. But, in summary, I added a few new functions to create a json file for collection and updated it to Python 3. @Gustav-Win, you can test if my repo solves your issue. A standard collection can be done with a code like this:
from pysocialwatcher import watcherAPI
# Note that parameters from constants.py are required to be set when instanciating a new watcherAPI object:
watcher = watcherAPI(api_version="8.0", sleep_time=3, save_every_x=3000, outputname="my_collection_output.csv.gz")
watcher.load_credentials_file("my_credentials.csv")
watcher.run_data_collection("my_collection.json", remove_tmp_files=True)
Cheers,
Joao
Let me know when you have PR ready. Thanks for helping manage the library.