Requests wrapper that uses Facebook Developer tool echo.
Project description
fecho
Uses Facebook's debugging tool to bypass CAPTCHA and other blacklists.
Install
pip install fecho
Usage
The cookie can be extracted using the EditThisCookie browser extension. Just export the cookies after logging into Facebook.
Command Line
fecho --url 'https://www.google.com/search?q=sample+query' --cookie '[
{
"domain": ".facebook.com",
"expirationDate": 1597023793.932123,
"hostOnly": false,
"httpOnly": false,
"name": "c_user",
"path": "/",
"sameSite": "unspecified",
"secure": true,
"session": false,
"storeId": "0",
"value": "",
"id": 1
},
...
]'
Python
from fecho import Client
COOKIE = """
[
{
"domain": ".facebook.com",
"expirationDate": 1597023793.932123,
"hostOnly": false,
"httpOnly": false,
"name": "c_user",
"path": "/",
"sameSite": "unspecified",
"secure": true,
"session": false,
"storeId": "0",
"value": "",
"id": 1
},
...
]
"""
client = Client(COOKIE)
response = client.get("https://www.google.com/search?q=test")
print(client.unescape(response.text))
Note
This project was inspired by s0md3v/goop
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for fecho-1.0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 772f9b2438afed4c89d0d15953763857c4713d755a74fe3dc0543db6fa00878a |
|
MD5 | d2396efaea2dbc3ecf70ec2c8d3d57a4 |
|
BLAKE2b-256 | dc841208e0a9bbc00ff2d548c1c6f431a3dab81dd6a08cb57bbc7dd150371a82 |