Skip to main content

Requests wrapper that uses Facebook Developer tool echo.

Project description

fecho Build Status

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fecho-1.0.6-py2.py3-none-any.whl (5.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file fecho-1.0.6.tar.gz.

File metadata

  • Download URL: fecho-1.0.6.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for fecho-1.0.6.tar.gz
Algorithm Hash digest
SHA256 c65c9b4c552404585d577943ea3454a730841974a587b3412f48bc4186696458
MD5 2e0db256c05a948388d144b3bb1b1b40
BLAKE2b-256 255961f102b580a569c384ab1c3369d391f7621ec76afa8be41485b6c312fa68

See more details on using hashes here.

File details

Details for the file fecho-1.0.6-py2.py3-none-any.whl.

File metadata

  • Download URL: fecho-1.0.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for fecho-1.0.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 002366f244b5825988258f433eb4e56e4cb4869989497deeb5139d44a9a2af36
MD5 885eb5fbc808fb9fbffed105c1a2dd31
BLAKE2b-256 cd58d0477d61ffa07f4fd54bc065343040e15fa8df82babcbba2b2e7868d883b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page