Код: Выделить всё
import requests
import pyodata
import json
import pandas as pd
Метод 1
Код: Выделить всё
SERVICE_URL = 'https://xxx/sap/opu/odata/sap/Table_0001'
Код: Выделить всё
SERVICE_URL = 'https://xxx/opu/odata/Table_0001/?$format=json'
HTTP_LIB=requests.Session()
HTTP_LIB.auth = ('username', 'password')
HTTP_LIB.verify=False
Код: Выделить всё
Подробнее здесь: [url]https://stackoverflow.com/questions/60755773/how-to-load-odata-in-python-dataframe[/url]
Мобильная версия