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
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 ∙ 9 hours 49 minutes back ∙ 54 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 ∙ 11 hours 51 minutes back ∙ 50 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 11 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 8 hours back ∙ 29 proposals |
A WordPress site using the Kadence theme and Kadence Blocks.
223 USD
We need to create a website on WordPress using the Kadence theme and Kadence Blocks. There will be no online store (although it may be added in the future). We need a homepage and several internal pages. The graphics are already prepared, the layout structure is mostly defined,… Content Management Systems, PHP ∙ 7 days 17 hours back ∙ 38 proposals |