Budget: 500 UAH Deadline: 1 day
Good morning, I’m glad to help you, I already have experience in this field.
Andrei Wozniak
public static String auth(String login, String password) throws IOException {
String data = String.format(
"username=%s&password=%s&locale=ru",
URLEncoder.encode(login, "UTF-8"),
URLEncoder.encode(password, "UTF-8")
);
Response resp = Request.builder().url("https://examlpe_some_site.com/bla/bla/bla/login")
.method("POST")
.header("Content-Type", "application/x-www-form-urlencoded")
.header("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36")
.data(data.getBytes(StandardCharsets.UTF_8)).build().send();
return HttpCookie.parse(resp.getHeaders().get("Set-Cookie").get(0)).get(0).getValue();
}
можна просто повернути респонс : return resp
Budget: 500 UAH Deadline: 1 day
Good morning, I’m glad to help you, I already have experience in this field.
Andrei Wozniak
Budget: 500 UAH Deadline: 1 day
Hello to you,
The code is ready, I will send you as soon as you write.
I will be happy with personal messages.
Budget: 500 UAH Deadline: 1 day
If still relevant, ready to do right now through the library requests
Budget: 500 UAH Deadline: 1 day
Good morning, the code is ready.
Unfortunately, less than 500 UAH cannot be placed.
Budget: 500 UAH Deadline: 1 day
Good evening ! I am pleased to fulfill your task! I work 24/7
Budget: 500 UAH Deadline: 1 day
Here is the translation of this code from Java to Python:
Imported by urllib.parse
Import Requests
def auth (login and password)
URL = "https://example_some_site.com/Bla/Bla/Bla/Login"
data = {"Username": login, "Password": password, "Locale": "Ru"}
This is the beginning code, I already have a ready code for you.
This code does the same as the output code in Java. It accepts the login and password as arguments, forms the request using the requests library, sends it to the server and returns the cookie value. It is important to note that the urllib.parse module is used to code the URL and data forms.
Budget: 500 UAH Deadline: 1 day
Hello, you are ready to do everything right now. Write it.
Unfortunately I can’t put less than 500 :(
Budget: 500 UAH Deadline: 1 day
Good night, ready to help you. I wait for answers.
Online 24/7
import urllib.parse import requests def auth(login, password): data = urllib.parse.urlencode({ "username": login, "password": password, "locale": "ru" }).encode('utf-8') headers = { "Content-Type": "application/x-www-form-urlencoded", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36" } response = requests.post("https://example/bla/bla/login", headers=headers, data=data) print(response.text) print(response.status_code) # set_cookie_header = response.headers.get("Set-Cookie") # cookie_value = Cookie().parse(set_cookie_header).get(0).value # return cookie_value auth(login,password)ось таке на пайтоні не працює = раптом хтось хотів так написати
а на джава те що дав в завданні - працює
Доброго дня, код готовий
Нажаль нижче 500 грн не можу поставити
Можу відправити вам результат у приватні повідомлення для перевірки
задачу вирішено
data = urllib.parse.urlencode({ "username": login, "password": password, "locale": "ru" }).encode('utf-8')ось такий код, багато хто писав - він не правильний
бо не правильно з джава на пайтон то переаодили,
на джава чітко аписано що стрічку ми урл енкоде на джава робили, і не всього дікту, а логіну і пасворду тільки
і на пайтону урленкоде не дікта робити, а саме для стрічки !!!
We are developing a real-time integration with the external service Trainer. We send structured snapshots of the state, receive recommendations, and display them in a pop-up bubble. The task is stable and complete data transmission for the correct operation of the Trainer. We are looking for a developer for the chain: data processing → HTTP communication → overlay. We need people with the following skills Python is good, Java basics, API HTTP/JSON-APIs The project is 90% ready but there are some inconsistencies
I have a list of Discord servers operating in different countries and languages. The task involves sending private messages to users on the specified servers. The content of the campaign will be tailored to each server. A total of message variants have been prepared in 10 languages. Scope for Quotation Stage 1 - Test Sending 1000 test messages to check the effectiveness of the solution, the quality of execution, and the response of anti-spam systems. Stage 2 - Main Campaign Sending 10,000 messages per month for a period of 5 months. Total volume: 50,000 messages. Terms of Cooperation The contractor is responsible for the execution of the task from start to finish, including the preparation of the necessary infrastructure and accounts. On my side, I will provide: graphics, message content, list of servers, information on which language version should be used on a specific server. The order may be expanded if the test stage is successful and the messages effectively reach the recipients.