Skip to content

Instantly share code, notes, and snippets.

@cadrev
Created February 4, 2016 11:32
Show Gist options
  • Save cadrev/e7167ba918616372a62a to your computer and use it in GitHub Desktop.
Save cadrev/e7167ba918616372a62a to your computer and use it in GitHub Desktop.
import os
#
# Kayo nalang maglagay kung paano kukunin iyong
# data from the database tapos either gawin niyo sya
# na script running on the background or
# naka cron job per minute
#
data = "get from local database"
http_address = "http://somewebsite.com/saveData.php?myData="
request_string = http_addess + data
os.system('curl ' + request_string)
@ljvmiranda921
Copy link

Okay na pala!
Ang ginawa ko:
os.system('curl ' + ' " ' + request + ' " ')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment