Answer the question
In order to leave comments, you need to log in
When parsing a site, the site requires JavaScript to be enabled, what should I do?
wrote a simple code with which I log in to the game forum and when I display text, I get "Please turn JavaScript on and reload the page."
The code:
import requests
import numpy as np
import pandas as pd
import time
from fake_useragent import UserAgent
data = {
"login": "Здесь был мой логин",
"register": "0",
"password": "Здесь был мой пароль",
"remember": "1",
"cookie_check": "1",
"redirect": "/threads/rm-r%D0%A0-%D0%98%D0%B3%D1%80%D0%B0-%D0%A1%D1%87%D0%B8%D1%82%D0%B0%D0%B5%D0%BC-%D0%B4%D0%BE-10000.334257/page-112",
"_xfToken": ""
}
page_link = 'https://forum.r-rp.ru/login/login'
r = requests.get(page_link, headers={'User-Agent': UserAgent().chrome}, data=data)
print(r)
print(r.text)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question