Quantcast
Channel: Kodi Community Forum - Scrapers
Viewing all articles
Browse latest Browse all 172

cyrillic filenames in python scraper

$
0
0
Hi !
I am writing a python scraper for russian films. its almost complete. last problem when I get movie filename from KODI I got
something like. movie title become in wrong coding.
(Pdb) print(sys.argv[2])
?action=find&pathSettings=%7b%7d&title=%d0%9a%d0%be%d0%bd%d1%82%d0%b0%d0%ba%d1%82&year=2012
(Pdb) print(sys.argv[2].encode())
b'?action=find&pathSettings=%7b%7d&title=%d0%9a%d0%be%d0%bd%d1%82%d0%b0%d0%ba%d1%82&year=2012' 
In result i can't pass corect search name to my scraper. 
Can anyone help me to solve it?

Viewing all articles
Browse latest Browse all 172

Trending Articles