Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Python3 hashlib
Post: Python3 hashlib
Quote:Hello, I'm trying to read and compare from an online list, through a given hash, but I'm getting this error:
Quote:Does anybody can help me please?
Error:Traceback (most recent call last):
Fi... |
|
ogautier |
General Coding Help |
1 |
1,540 |
Mar-28-2022, 02:42 AM |
|
|
Thread: Python3 url parse
Post: RE: Python3 url parse
(Mar-04-2022, 06:22 PM)snippsat Wrote: You need to get the json response back when working with an API
import requests
req = requests.get('https://api.kraken.com/0/public/Ticker?pair=ADAUSD,BTCUSD... |
|
ogautier |
General Coding Help |
5 |
2,638 |
Mar-04-2022, 06:40 PM |
|
|
Thread: Python3 url parse
Post: RE: Python3 url parse
(Mar-04-2022, 04:55 PM)Axel_Erfurt Wrote: use req.text
parsed = urllib.parse.urlsplit(req.text)
Quote:Tnanks Axel,
With .text I can get the entire response, I just need to extract the query part..... |
|
ogautier |
General Coding Help |
5 |
2,638 |
Mar-04-2022, 05:29 PM |
|
|
Thread: Python3 url parse
Post: Python3 url parse
Quote:Hello,
I'm trying to extract the assets(ADAUSD,BTCUSD,DOGEUSD,DOTUSD,ETHUSD,LTCUSD,SHIBUSD,XMRUSD,XRPUSD,SOLUSD) part of the following url using urllib.parse, but I got this error:
Does anybod... |
|
ogautier |
General Coding Help |
5 |
2,638 |
Mar-04-2022, 04:39 PM |
|
|
Thread: Python3 List in requests
Post: Python3 List in requests
Quote:Hello, Id like to know if is possible to pass a list of parameters to the following url: https://api.kraken.com/public/Ticker?pair='ADAUSD'
to replace pair='ADAUSD' to payload
Regards!
import ... |
|
ogautier |
General Coding Help |
1 |
1,196 |
Mar-03-2022, 08:57 PM |
|
|
Thread: For Lopop Python3
Post: For Lopop Python3
Quote:I am trying to obtain the asset and its value from the result without the curly braces, I have tried to do it through various ways and I have not succeeded, could someone help me please?
The re... |
|
ogautier |
General Coding Help |
2 |
1,243 |
Mar-02-2022, 01:56 AM |
|
|
Thread: Python3 for loop over a dict
Post: Python3 for loop over a dict
Quote:Hello!
I am trying to get all the values individually for each asset for example:
BCHUSD
a = 301.340000
b = 301.160000
c = 301.280000
TRXUSD
a = 0.0609450
b = 0.0609440
c = 0.0609540 and so o... |
|
ogautier |
General Coding Help |
3 |
1,387 |
Feb-25-2022, 01:28 AM |
|
|
Thread: Python3 mysql connection performance
Post: RE: Python3 mysql connection performance
(Feb-19-2022, 06:21 AM)ndc85430 Wrote: Could you perhaps show a code sample? I'm reading more of a design question than a performance one, but it'd be useful to see what your code looks like before ... |
|
ogautier |
News and Discussions |
5 |
2,053 |
Feb-20-2022, 05:53 PM |
|
|
Thread: Python3 mysql connection performance
Post: RE: Python3 mysql connection performance
(Feb-19-2022, 01:19 PM)Larz60+ Wrote: see: LoadDatabase.py here: https://python-forum.io/thread-33843.html
This is the method that I use.
This entire tutorials is about automatically creating a dat... |
|
ogautier |
News and Discussions |
5 |
2,053 |
Feb-20-2022, 05:16 PM |
|
|
Thread: Python3 mysql connection performance
Post: Python3 mysql connection performance
Quote:Hello,
I would like to know what allows me to get the best performance when connecting from Python to mysql server:
1. Create a connection in each of the files
2. Create a file containing the ... |
|
ogautier |
News and Discussions |
5 |
2,053 |
Feb-18-2022, 09:35 PM |
|
|
Thread: Python3 requests.models.Response
Post: RE: Python3 requests.models.Response
(Feb-17-2022, 04:03 PM)buran Wrote: (Feb-17-2022, 03:44 PM)ogautier Wrote: Is it possible to save all tag values in a variables?This is not great idea. Iterate over obj['tickers'] then access the ... |
|
ogautier |
General Coding Help |
4 |
5,404 |
Feb-17-2022, 04:46 PM |
|
|
Thread: Python3 requests.models.Response
Post: RE: Python3 requests.models.Response
(Feb-17-2022, 05:18 AM)buran Wrote: It could be better to post the output from print(obj)
Otherwise:
for ticker in obj['tickers']:
for key, value in ticker.items():
print(f'{key} -->... |
|
ogautier |
General Coding Help |
4 |
5,404 |
Feb-17-2022, 03:44 PM |
|
|
Thread: Python3 requests.models.Response
Post: Python3 requests.models.Response
Hello, I'm trying to get information from every individual tag key like symbol, pair, markPrice, IndexPice, bid and so on. Does anybody can help me to iterate over this object to get each value please... |
|
ogautier |
General Coding Help |
4 |
5,404 |
Feb-17-2022, 04:12 AM |
|
|
Thread: Python and MySql
Post: RE: Python and MySql
(May-20-2021, 07:49 AM)ibreeden Wrote: (May-19-2021, 09:29 PM)ogautier Wrote: I can obtain the two values correctly, but I cannot insert the new values that are different from the ones I have in t... |
|
ogautier |
General Coding Help |
8 |
3,362 |
May-20-2021, 01:29 PM |
|
|
Thread: Python and MySql
Post: RE: Python and MySql
(May-20-2021, 06:23 AM)kashcode Wrote: You need insert symbol if does not exist or update when exists?
Quote:I just need to insert symbol if not exist
|
|
ogautier |
General Coding Help |
8 |
3,362 |
May-20-2021, 01:22 PM |
|
|
Thread: Python and MySql
Post: RE: Python and MySql
(May-19-2021, 09:39 PM)kashcode Wrote: can you show response from API?
Yes I Can
This is the response:
response = {'timezone': 'UTC', 'serverTime': 1621287738195, 'futuresType': 'U_MARGINED', 'rat... |
|
ogautier |
General Coding Help |
8 |
3,362 |
May-19-2021, 09:45 PM |
|
|
Thread: Python and MySql
Post: Python and MySql
Hello,
Currently I have a database (MySql) with a table called monedas where I have the following fields, simbolo and decimales.
Ae I am connecting to an API that generates a response of type dicti... |
|
ogautier |
General Coding Help |
8 |
3,362 |
May-19-2021, 09:29 PM |
|
|
Thread: How to parse JSON DIC?
Post: RE: How to parse JSON DIC?
Yes Buran...it solve the problem.
Thank you very much!! |
|
ogautier |
General Coding Help |
4 |
2,237 |
Sep-15-2020, 06:03 PM |
|
|
Thread: How to parse JSON DIC?
Post: RE: How to parse JSON DIC?
Hello buran,
I´m sorry, and than you.
Yes, I want to save in mysql table, the result of that JSON response.
Best Regards,
Orlando Gautier |
|
ogautier |
General Coding Help |
4 |
2,237 |
Sep-15-2020, 05:08 PM |
|
|
Thread: How to parse JSON DIC?
Post: How to parse JSON DIC?
Hello I'm trying to parse the JSON DIC, to get only the values of each item of the response and save them in a mysql table.
Does anybody can help me please?
Regards,
Orlando Gautier
import hmac
impo... |
|
ogautier |
General Coding Help |
4 |
2,237 |
Sep-15-2020, 04:43 PM |