Import Requests
from bs4 import BeautifulSoup
Username = ‘test’
Password = ‘test’
PATH_TO_FILE = '/var/www/www-root/data/www/test/upload/price_vd.csv'
by def main():
Sessions = requests.Session()
ses.headers['User-Agent'] = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0'
URL = “https://test/Account/Login”
Response = ses.get (url)
Soup = BeautifulSoup(response.text, 'html.parser')
requestVerificationToken = soup.find('input', {'name':'__RequestVerificationToken'}).get('value')
print("verification_token: {token}".format(token=requestVerificationToken))
URL = 'https://test/views/account/login'
Headers = {
“Content-Type”: “application/x-www-form-urlencoded”,
The
The data = {
“__RequestVerificationToken”: requestVerificationToken,
“ComId”: “15”
Username: Username
“Password” is the Password.
“Remember Me” – “False”
The
response = ses.post(url, headers=headers, data=data, allow_redirects=True)
print("authorisation code: {code}.format(code=response.status_code))
URL = 'https://test/base/CustomerPriceCSV'
response = ses.get(url, headers=headers, allow_redirects=True)
open(PATH_TO_FILE, 'wb').write(response.content)
The main()
This is the work file that pulls the price of the server now changed the site to whom the price we take now write here such a hern error 200 token
Or repair this or write a new as you are comfortable.
Applications 1
Client's review of cooperation with Yuriy Gumeniuk
Screenshots of Parsers Prices with AuthorizationI recommend the man to go out and do what I should.
Freelancer's review of cooperation with Sergey Alekseyevich
Screenshots of Parsers Prices with AuthorizationThe order is interesting, the payment is timely.
-
174 8 0 1 Good time . Ready to clean. You can look at the site from which the data comes to assess the complexity. On screenshots in discussion is clear, but the error about authorization, you need to look live.
-
459 14 1 Hello to Sergey!
ready to accomplish this task. Write to LS.
-
531 11 0 1 Hello to you. I will be happy to take your task. I do everything quality and in the shortest time possible. Please call me, I will be happy to cooperate.
-
378 8 1 1 Under which account data you perform authorization on the site. You can send to personal messages.
-
Зарегистрировался на сайте https://e-parts.in.ua/
Не увидел ссылки для скачивания прайса.
-
Вот скрин старой версии сайта в нём просто ссылка

Вот новый вариант у нас идут две кнопки и после нажатия ждём 60 секунд потом начинается скачивание

-
Починил скрипт.
-
Current freelance projects in the category PHP
Need to make improvements on the Modx Evolution CMS 3.1.7 site.
22 USD
The design refinement and layout of the website are being developed, and these works will need to be implemented on the site.Also, some adjustments need to be implemented on the site. HTML & CSS, PHP ∙ 2 hours 22 minutes back ∙ 14 proposals |
Integration of Blade article template | Laravel | Frontend
100 USD
Integration of Blade template for article | Laravel | Frontend Task Essence The site is built on Laravel. A ready HTML/CSS layout for a premium blog article page. It needs to be integrated into the existing Blade structure of the site. The design is ready. You are not designing… PHP, Web Programming ∙ 21 hours 40 minutes back ∙ 63 proposals |
Implementation of a technical SEO audit on OpenCartGood day. Need to implement technical SEO fixes on the site softugo.com. The site is already developed but not fully launched yet. Platform: ocStore 3.0.2.0 / OpenCart + custom code. Hosting: Hostinger. Current PHP version: 7.3. (transition to PHP 8.2 is planned) A checklist… PHP, Web Programming ∙ 23 hours 42 minutes back ∙ 55 proposals |
Execution of work after SEO audit
334 USD
An experienced OpenCart developer is needed to perform SEO and technical improvements for the online store. Main tasks: Correction of the internal linking structure and menu. Adding links to the footer. Implementation of breadcrumbs with Schema.org microdata. Fixing the… PHP, Website Maintenance ∙ 3 days 23 hours back ∙ 63 proposals |
Integration needed: KeyCRM → Cash Register KashalotIt is necessary to set up integration between KeyCRM and the Cash Register Kahalot. When placing an order in KeyCRM, the data must be automatically transmitted to Kahalot: • order information • products, nomenclature • prices • quantity More details in private. Content Management Systems, PHP ∙ 6 days 19 hours back ∙ 29 proposals |