xtekky / TikTok-ViewBot

ViewBot using requests | Fast, no selenium | Custom Views count and clean Design
https://t.me/onlpx
Apache License 2.0
1.19k stars 479 forks source link

Bit of code refactoring #126

Closed dinosaurtirex closed 11 months ago

dinosaurtirex commented 1 year ago

Btw, instead of using formdata as string you can use it as dict. For example:

data = {
  "val1": 1,
  "val2": 2
}
r = post(url, headers, data=data)

if it's not working try insted of data to use json for example:

data = {
  "val1": 1,
  "val2": 2
}
r = post(url, headers, json=data)

Also i highly recommend to use this tool https://curlconverter.com/ It is saving a lot of time while reversing web application