A
A
albertalexandrov2018-03-03 17:22:26
Python
albertalexandrov, 2018-03-03 17:22:26

How to parse spimex?

Hello!
There is St. Petersburg Commodity International Exchange spimex.com/markets/oil_products/trades/game (demo, recording of one trading day at x10 speed).
Please tell me how to:
1. use a query to set a filter for a specific product, for example, "All types of petroleum products" -> "Premium-95"?
2. How to track (parse) quotes so that I don't get called Mr. Coder?
For now, I imagine it like this: at certain intervals, requests using requests, downloading html, parsing, writing.
Thank you all in advance for your replies and tips.
PS I also see that the server gives updates like this:
al4vcegh_husbiu9qul79gtrgvm.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2018-03-03
@albertalexandrov

here see the principle
instrumentally you can yes, in a simple way: requests + soup or whatever, I prefer pycurl (when not scarapy)
https://www.telerik.com/fiddler will help with headers of
course, save cookies it must

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question