LinkExpander
Link expander in Python which parses and returns the URLs and information in common link domains. (The currently supported links are in below)
REQUIRES PYTHON>=3.10
Supported Links:
- Linktr.ee
- Hoo.be
- Snipfeed.co*
- Beacons.ai
- Allmylinks.com*
- Msha.ke
- Linkr.bio
- Carrd.co
- Lnk.bio
- Direct.me*
- Link.me
- Taplink.cc
* These sites heavily rely on Cloudflare bypass and can be patched at any time. (Despite using UndetectedChromedriver)
Usage
First, download and install the dependencies:
py -m pip install -r requirements.txt
Then, place the script inside your project directory and import the function:
from LinkExpander import gather_links
After that, call gather_links with the URL of the linksite:
...
links_info = gather_links("URL")
Returned Data
This will return a dictionary. Although the different sites will return more/less information than one another, they all will have the following fields:
username: Account usernameavatar: Account avatarlinks: A list of the scraped links
The links list includes:
domain: Domain of the linktitle: Title of the linkurl: URL of the link
The typical returned dictionary looks like this:
{
"username" : "Some username",
"avatar" : "URL of the avatar",
"links" : [
{"title" : "Example1", "domain" : "google.com", "url" : "https://google.com"},
{"title" : "Example2", "domain" : "facebook.com", "url" : "https://facebook.com/..."}
]
}
Credits
Credits 100% to @devdagoat
Release files for LinkExpander 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| linkexpander-1.1.0.tar.gz | 8.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| LinkExpander-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.1 kB
Release files / linkexpander-1.1.0.tar.gz
| Download URL | linkexpander-1.1.0.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
010f8e4457346e607a5ff65d7b3b2be208843e32b5fa083f7aad37963f6a73d1
|
|
BLAKE2b-256 checksum How to use checksums |
826b46e677b79372328668a5e8609dd3fcfa47a7e191cb47c18d45240deb23a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.2
|
Release files / LinkExpander-1.1.0-py3-none-any.whl
| Download URL | LinkExpander-1.1.0-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
695f17bf024fd6eb0185f9ab4eacbc99dcb4428e1f2b5fc9382c2ec2105fe566
|
|
BLAKE2b-256 checksum How to use checksums |
0a469732d9f0cc5c6448e7ab71d6c8bc3a08502d9b813a5715bfcfa511370413
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.2
|