mardi 22 mars 2016

Python: how to post dataframe csv to url [on hold]

I have a script in python to produce an output in csv format everyday. I would like it to be posted to an url link after I generate the csv output. The format of the csv is as below:

Stocks, Position, BUY price,SELL Price
AAPL, BUY, 87, 98
MSFT,SELL,90, 78
IBM, HOLD,45,88

Which command and Library I need to use for Python? POST in urllib? Any prerequisite for the free webhosting if I want to post the csv data to an url? My current idea is to get a free web responsive template and modify from it with a free hosting.

PS: I will manually run my python script to generate the csv file but I want the csv data will be posted to a webpage each time I run my python script.

I added the url that I wish to update when I run the python script. http://ift.tt/21FtobH

How can I change the data automatically thru my python script using request library. Thanks

Aucun commentaire:

Enregistrer un commentaire