On Sat, 16 May 2020 at 4:38 PM KINGHAMED io
wrote:
> Hello my name is Hamed
> I have purchased python for kids.
> I have installed idle and Python launcher 3.8.3 with my 11 inch MacBook
> Air (Mac OS Sierra)version 10.12.6
> I have followed all the instructions all the
HI, everyone,
how can i make a HTTP GET REQUEST using python and passing parameters?
I would like to recall my script from within openoffice basic and pass
parameters to it.
Some of the GET or POST are here : https://www.bitstamp.net/api/
thanks for anyhelp
--
http://mail.python.org/mailman/l
Thanks, btw ...i'm the IT guy!
I was missing the double slash as dougas suggested!++Thanks anyway.
--
http://mail.python.org/mailman/listinfo/python-list
Genius!
The code i posted was an example.
My real code was c:\btc_trading
i was just missing the double slashes!
Thanks , thankyou very much.
:-)
--
http://mail.python.org/mailman/listinfo/python-list
ta = json.loads(response.read())
f = open("/home/io/btc_trading/markets.csv","wb")
c = csv.writer(f)
#apre un file di testo e legge il contenuto del file inserendolo in una
stringa
esclusioni_file = open('/home/io/btc_trading/exclusions.txt','r')
esclusioni =
What you wrote seems interesting but i haven't understood.
Can you explain in simple words considering i'm italian and i'm not
understanding so well some terms you use.
Sorry, i'm sure you are suggesting something really valid but can't
understand it.
Marco.
--
http://mail.python.org/mailman/li
> Just use a tolower() method on both strings when you're comparing them.
> Of course, that may not work well with international character sets.
> Some characters in some languages have no lowercase equivalent, and
> using toupper() has the same problem in other languages.
>
> Also, the approac
The final working code is :
import json
import urllib
import csv
url = "http://bitcoincharts.com/t/markets.json";
response = urllib.urlopen(url);
data = json.loads(response.read())
f = open("/home/io/markets.csv","wb")
c = csv.writer(f)
#apre un file di testo
Neil, it works great!
Just one question : what can i do for ignoring the case sensitive of the
symbol?
It wasn't working initially, then i wrote the values respecting case
sensitive in the file esclusioni and all worked as a charm. I would just
like to know if i could ignore the case senstive
> Iterate over the file instead of looping manually.
>
> for line in esclusioni_file:
> esclusioni.append(line.strip())
> print(esclusioni)
the print was only to see if it was reading correct data but iìm not
needing to see it.
> Why are you checking d["symbol"] instead of d["currency
I'm a noob in python but my code looks like this :
import json
import urllib
import csv
url = "http://bitcoincharts.com/t/markets.json";
response = urllib.urlopen(url);
data = json.loads(response.read())
f = open("/home/io/markets.csv","wb")
c = csv.writer(f)
Hi,
i have to files.
First file is a csv file
Second file is a plain text file where each row has a value (text)
I want to be able to create a third file using data from the first file
excluding the values listed in the second file.
Example:
First file:
---
mtgoxeur12 2
t csv
url = "http://bitcoincharts.com/t/markets.json";
response = urllib.urlopen(url);
data = json.loads(response.read())
f = open("/home/io/markets.csv","wb")
c = csv.writer(f)
# write headers
c.writerow(["Currency","Symbol","Bid"
That worked perfectley!
Thanks alot.
--
http://mail.python.org/mailman/listinfo/python-list
Il Wed, 20 Feb 2013 06:59:46 +, Cousin Stanley ha scritto:
> io wrote:
>
>>
>> How do i manage to read the data source from
>> http://bitcoincharts.com/t/markets.json
>> I just need currency, symbol, bid, ask, volume
>
> Following is
Hi Michael (name of my son) and thanks for the big help.
I'm starting to love python sintax (did they call it python for the slim
it is compared to other languages?)
Your code didn't work immediatley as it was givin an indentation error
that i sorted out quickly fixing the last two lines.
It w
Hi,
i'm new to python and programming with it and so for json format.
I have my excel 2010 program with vba that does the following :
- read the data flow from http://bitcoincharts.com/t/markets.json
- elaborate it and puts it in excel 2010 for further calculations
What i'm willing to do is the
17 matches
Mail list logo