Skip to content

Commit

Permalink
[Download Datasheets][Updated] User agent
Browse files Browse the repository at this point in the history
To avoid problems with Zscaler

Fixes #698
  • Loading branch information
set-soft committed Oct 22, 2024
1 parent 28e223a commit f1540db
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions kibot/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,11 @@
'yellow': ("#73823d", "#f2a756"),
'purple': ("#30234a", "#451d70")}
SILK_COLORS = {'black': "0b1013", 'white': "d5dce4"}
# Some browser name to pretend
USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0'
# Some browser name to pretend, popular at the moment
# https://techblog.willshouse.com/2012/01/03/most-common-user-agents/ on 2024-10-22
USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36'
# Old value, caused problems with Zscaler
# USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0'
# Text used to disable 3D models
DISABLE_3D_MODEL_TEXT = '_Disabled_by_KiBot'
RENDERERS = ['pcbdraw', 'render_3d', 'blender_export']
Expand Down

0 comments on commit f1540db

Please sign in to comment.