Drive Fetch of Webdat and consequence python script

Hi guys,
I’m newbbie of TD, i’m starting to play with webDat for parsing Json that my on line app create.
The project is easy sample:

  • Fetch by webDAT a php page that send a json file (in this case collect tweet by request #Hastag and parse with message + tweet screen_name)
  • the result of webDAT is parsed by python script for populate table.

Ok until here is easy, now i have 2 problem:

  • I try to drive fetch button of WebDat by absTime.seconds*20 but for fetch every 20 sec but don’t work
  • I attach an parameterExcutive DAT and insert the webDat as op and text in parameter but also if i fetch by hand the script is not executed also if the text par of webDat change. I debug put print(‘va’) but nothing happened.

I attach a screenshot about the network
thanks guys for your help

Hey mauro,

it’s easier to help you if you just post your .tox/.toe file here instead of a screenshot, so everybody can immediately work in your file and post a revised version.

So sorry Nettoyeur
Here you can find my Toe file.
Inside there is the instruction and php code.

Thanks for your help
Twitter_TD_Forum.toe (8.49 KB)

An easy way to do this would be with a Timer CHOP, see attached example.
Twitter_TD_Forum_timer.toe (5.09 KB)

For checking if the contents of a DAT has changed you need to use a DAT Execute, which has the callback OnTableChange you can use.

Thanks Nettoyeur, I’ll try your advice.
thanks a lot