Skip to main content

A feds.lol API wrapper for Python.

Project description

feds.py

AGPL License

A feds.lol API wrapper for Python.

Installation

Install feds.py with pip

pip3 install feds.py

Usage/Examples

import feds

client = feds.Client()
client.login_with_credentials('username', 'password')

client.set_name('test') # Change biolink's display name
client.set_link('test') # Change biolink's URL
client.set_avatar('https://i.imgur.com/xxxxxxx.png') # Change biolink's profile picture
client.set_background('https://i.imgur.com/xxxxxxx.png') # Change biolink's background picture
client.set_bio('test') # Change biolink's bio
import feds

client = feds.Client()
client.login_with_session('PHPSESSID')

client.set_name('test') # Change biolink's display name
client.set_link('test') # Change biolink's URL
client.set_avatar('https://i.imgur.com/xxxxxxx.png') # Change biolink's profile picture
client.set_background('https://i.imgur.com/xxxxxxx.png') # Change biolink's background picture
client.set_bio('test') # Change biolink's bio
>>> import feds
>>> import json
>>>
>>> data = feds.fetch('https://feds.lol/1').get_data()
>>> 
>>> print(json.dumps(data, indent=4))
{
    "style": 1,
    "url": "https://feds.lol/1",
    "avatar": "https://i.imgur.com/hZpOceo.jpeg",
    "background": "https://i.imgur.com/zx6en3Q.gif",
    "name": "b",
    "views": "5869",
    "bio": "test",
    "spotify": "spotify:track:3AIxrqGApkV8E7uH0x2xF3?si=490a05333d6a4692",
    "links": [
        {
            "name": "GITHUB",
            "url": "https://github.com/addi00000"
        }
    ]
}

Contributing

Feature additions and bug fixes/reports are welcome. Please open an issue or pull request.

License

This project is licensed under the AGPL License - see the LICENSE file for details.

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

feds.py-1.4.tar.gz (15.7 kB view details)

Uploaded Source

File details

Details for the file feds.py-1.4.tar.gz.

File metadata

  • Download URL: feds.py-1.4.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.9

File hashes

Hashes for feds.py-1.4.tar.gz
Algorithm Hash digest
SHA256 3e64efd46e2f4e2d878699f7fbd0a05b581cbd2b6e5bea0d40690a90ccf25988
MD5 48646d115288fa7ad1591696b0847282
BLAKE2b-256 5aa7461e48ca3907532bc0d1482fba30c25406da01a97a4c1a8eae0bc3cb9b6a

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