Skip to content

retouching/FlareSolverr-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlareSolverr - Python API

Simple python API to use a FlareSolverr Service

Requirements:

  • A FlareSolverr instance
  • requests
  • beautifulsoup4 (to parse HTML pages)

Usage:

Normal:

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

Using session:

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

About

✨ Python API for FlareSolverr service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages