name = Column(String(1000, collation='utf8mb4_unicode_ci'), index=True)
.....
sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (1071, 'Specified key was too long; max key length is 3072 bytes')
The index key prefix length limit is 767 bytes for InnoDB tables that use the REDUNDANT or COMPACT row format. For example, you might hit this limit with a column prefix index of more than 255 characters on a TEXT or VARCHAR column, assuming a utf8mb3 character set and the maximum of 3 bytes for each character.
X-Requested-With
import requests
url = "http://mozgoboy.ru/ajax?action=get/rating&city=5&season=all&league=1&search_team_name=&_=1610204052611"
headers = {
'X-Requested-With': 'XMLHttpRequest'}
response = requests.request("GET", url, headers=headers)
print(response.text)
import requests
data = {
'params[rows]': 10,
'params[type]': 0,
'params[season]': 'all',
'params[direction]': 'desc',
'params[order]': 'points_sum',
}
p = requests.post('https://albertparty.ru/api/get_new_rows', data)
print(p.text)
'params[rows]': 20