Simple python API to use a FlareSolverr Service
- A FlareSolverr instance
- requests
- beautifulsoup4 (to parse HTML pages)
from flaresolverr import FlareSolverr
# Get page protected by Cloudflare
FlareSolverr.get(
'https://crunchyroll.com/rss',
flaresolverr_base_url='http://flaresolverr:5000' # if url is different from base
) # -> return a "Response" instance
All parameters can be found in "FlareSolverr" class
from flaresolverr.session import FlareSolverrSession
# Create session
session = FlareSolverrSession.create(
proxy='http://dummy', # You can pass a proxy to use with credentials here if any
flaresolverr_base_url='http://flaresolverr:5000' # if url is different from base
)
# Get page protected by Cloudflare
session.get(
'https://crunchyroll.com/rss',
) # -> return a "Response" instance
# Session must be closed at end
session.destroy()
# You can also list sessions already created
FlareSolverrSession.get_sessions() # return list of sessions created and not closed