WEBMEDIA: MediaSaver backend for saving videos, images, and audio from Intagram, TikTok, Facebok. It performs web scraping and uses predefined methods observed from network traffic
-
Selenium: primarily for Instagram (4s). It's suitable for other platforms, but it's running on small instance
-
Requests: using in TikTok and Facebook
-
BeautifulSoup: using in TikTok ad Facebook
-
corsproxy.io: for image rendering on web
-
Fetch Media: Retrieves both private and public media files
-
Cut Data: shrink and return normal data
-
Full Data: Give full data containing all fields scraped from given platform
-
Web App: WebMedia limited download(maybe)
-
Mobile App: MediaSaver unlimited download + WhatsApp status saver
- Method:
GET
orPOST
- URL:
https://devfemibadmus.blackstackhub.com/webmedia/api/
- Parameters:
cut
: Optionalurl
: Required
Status 200 โ
{
"success": true,
"data": { }
}
Status 400, 404, 500, 502 โ
{
"error": true,
"message": "...",
"error_message": "..."
}
Tiktok https://devfemibadmus.blackstackhub.com/webmedia/api/?cut=-&url=https://www.tiktok.com/@devfemibadmus/video/7390912680883899654
Instagram https://devfemibadmus.blackstackhub.com/webmedia/api/?cut=-&url=https://www.instagram.com/p/C-TMvc4yQh6/?img_index=3
Facebook https://devfemibadmus.blackstackhub.com/webmedia/api/?cut=-&url=https://www.facebook.com/share/v/qCRH3vKk2FbAEAUP/
Using Microsoft Edge on Debian VPS
-
Familiarize Yourself with Edge WebDriver and Selenium
Before proceeding, you might want to check out these issues on GitHub related to Edge WebDriver:
-
Install Microsoft Edge and Edge WebDriver on Debian
-
First, add the Microsoft repository to your APT sources list:
sudo nano /etc/apt/sources.list.d/microsoft-edge.list
Add the following line:
deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main
Then, download and add the Microsoft GPG key:
wget -q https://packages.microsoft.com/keys/microsoft.asc -O microsoft.asc sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/microsoft.gpg microsoft.asc
-
Update the APT package list and check for available versions of Microsoft Edge:
sudo apt update apt list -a microsoft-edge-stable
-
Install the latest matching version of Microsoft Edge:
sudo apt install microsoft-edge-stable=123.0.2420.97-1
-
Download the matching version of Edge WebDriver and install it:
sudo wget https://msedgewebdriverstorage.blob.core.windows.net/edgewebdriver/123.0.2420.97/edgedriver_linux64.zip unzip edgedriver_linux64.zip sudo mv msedgedriver /usr/local/bin/
-
Screenshot | Screenshot |
---|---|
website | status |
---|---|
TikTok Videos | โ |
TikTok Photos | โ |
Facebook Videos | โ |
Instagram Reels | โ |
Instagram Photos | โ |
Instagram Videos | โ |
YouTube | โ |