Skip to content

Requests wrapper that uses Facebook Developer tool echo.

License

Notifications You must be signed in to change notification settings

thehappydinoa/fecho

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fecho PyPI PyPI - Python Version Build Status PyPI - License

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

About

Requests wrapper that uses Facebook Developer tool echo.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages