reteps / lrc_kit

A library for searching, downloading, and parsing song lyrics in LRC format in python.
MIT License
24 stars 1 forks source link

Add Proxy parameter #2

Closed reteps closed 3 years ago

SimonIT commented 3 years ago

This is also needed for my integration in spotifylyrics

reteps commented 3 years ago

This actually already exists, I just forgot to close this issue.

Pass in a requests.Session object to a LyricsProvider. E.g

my_ses = requests.Session()
proxies = {
  'http': 'http://10.10.1.10:3128',
  'https': 'http://10.10.1.10:1080',
}
session.proxies.update(proxies)
ComboLyricProvider(session=my_ses)