Skip to content

Instantly share code, notes, and snippets.

View skar404's full-sized avatar

Denis Malin skar404

View GitHub Profile
@skar404
skar404 / README.md
Created January 18, 2022 20:37
добавить на last.fm сылка на spotify

Заметка как добавить на last.fm сылка на spotify

трек: https://www.last.fm/music/Patty+Gurdy/_/Lora+Lie+Lo

  1. Запрос для получения csrf_middleware_token
curl 'https://www.last.fm/music/Patty+Gurdy/_/Lora+Lie+Lo/+link/spotify?is_modal=1&ajax=1' -H 'Accept: */*' -H 'Accept-Language: en,en-US' -H 'Accept-Encoding: gzip, deflate, br' -H 'X-NewRelic-ID: null' -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' -H 'Referer: https://www.last.fm/music/Patty+Gurdy/_/Lora+Lie+Lo' -H 'Cookie:' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: same-origin' -H 'DNT: 1' -H 'Sec-GPC: 1' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' -H 'TE: trailers'
@skar404
skar404 / main.py
Created April 17, 2022 07:42
Python object dump
import pickle
dump = pickle.dumps([1, 2])
pickle.loads(dump) == [1, 2]