alexjamesmx / E-Commerce-Offers-Telegram-Bot

Telegram bot that gets the best deals of several E-commerce sites 🔥😈. Web/API scrapping with python. Easy to customize
0 stars 0 forks source link

Do you get the Cookie and CSRF token just once? #1

Open CorreiaDeveloper opened 1 week ago

CorreiaDeveloper commented 1 week ago

Do you get the Cookie and CSRF token just once? Or do you need an extension or something like that to get this data on a recurring basis? Another question, what would the affiliate code be?

alexjamesmx commented 1 week ago

Here, You just get them once. If the website you are scrapping has more restrictions for recurring requests or cookie expiration, then you should approach generating new cookies continuously or (first case) maybe you need to implement another function to remain undetected. The affiliate code depends on your affiliate account. Sign up as an affiliate and you will generate your own code.

This code works on Mercado Libre, also on Elektra (which I have not updated here), for each site the process varies, so just get a general idea of ​​how you can apply this to almost any other site.