Django
- 8 ответов
- 0 вопросов
4
Вклад в тег
module = importlib.import_module(f'actions.{module_name}')
import json
import re
import requests
req = requests.get('https://steamcommunity.com/market/listings/730/Glove%20Case')
search = re.search('var line1=(.+);', req.text)
data_str = search.group(1)
data = json.loads(data_str)
result = '\n'.join(map(str, data))
f_res = '[Date, Price, Amount]\n' + result
print(f_res)