iobis / pyobis

OBIS Python client
https://iobis.github.io/pyobis
MIT License
14 stars 10 forks source link

[Update] Making UI simpler and an OOP refactor #114

Closed ayushanand18 closed 1 year ago

ayushanand18 commented 1 year ago

Overview

This PR is huge and I'm really sorry for that.

Changes introduced

Thanks!

ayushanand18 commented 1 year ago

Interestingly, I have started playing with Request Headers and I find that some minor tweaks can increase performance by more than 25%. I tested this response header:

headers = {
        "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)\
         Chrome/107.0.0.0 Safari/537.36 Edg/107.0.1418.52",
        "Accept-Encoding": "gzip, deflate, br",
        "Host": "api.obis.org",
        "Connection": "keep-alive",
    }

And found that it increased speed by more than 27%.