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 Distribution
fecho-1.0.6.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for fecho-1.0.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 002366f244b5825988258f433eb4e56e4cb4869989497deeb5139d44a9a2af36 |
|
MD5 | 885eb5fbc808fb9fbffed105c1a2dd31 |
|
BLAKE2b-256 | cd58d0477d61ffa07f4fd54bc065343040e15fa8df82babcbba2b2e7868d883b |