Spaces:
Running
Running
Create Stok.api
Browse files
Stok.api
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import requests
|
2 |
+
import xml.etree.ElementTree as ET
|
3 |
+
|
4 |
+
response = requests.get('https://bizimhesap.com/api/product/getproductsasxml?apikey=6F4BAF303FA240608A39653824B6C495')
|
5 |
+
xml_str = response.content
|
6 |
+
|
7 |
+
root = ET.fromstring(xml_str)
|
8 |
+
|
9 |
+
# XML verileri burada kullanılabilir
|