Skip to content

Commit e9bbc0a

Browse files
committed
v1.0.0
1 parent b82905a commit e9bbc0a

File tree

9 files changed

+872
-0
lines changed

9 files changed

+872
-0
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 ammar0xff
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 185 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,185 @@
1+
# Mbedly
2+
3+
<a id="readme-top"></a>
4+
5+
<!-- PROJECT SHIELDS -->
6+
7+
<p>
8+
<img src="https://img.shields.io/github/contributors/ammar0xff/Mbedly.svg?style=for-the-badge&color=orange" />
9+
<img src="https://img.shields.io/github/forks/ammar0xff/Mbedly.svg?style=for-the-badge&color=orange" />
10+
<img src="https://img.shields.io/github/stars/ammar0xff/Mbedly?style=for-the-badge&color=orange" />
11+
<img src="https://img.shields.io/github/issues/ammar0xff/Mbedly.svg?style=for-the-badge&color=orange" />
12+
<img src="https://img.shields.io/github/license/ammar0xff/Mbedly?style=for-the-badge&color=orange">
13+
<img
14+
src="https://img.shields.io/badge/-LinkedIn-blue?style=for-the-badge&amp;logo=Linkedin&amp;logoColor=white&color=gray" />
15+
</p>
16+
17+
18+
<!-- PROJECT LOGO -->
19+
20+
<br />
21+
<div align="center">
22+
<a href="https://github.com/ammar0xff/Mbedly"><img src="images/banner.png" alt="Banner"></a>
23+
<h3 align="center">Mbedly</h3>
24+
<p align="center">
25+
A Full-Featured Video Downloader Supports Many Sites And Makes A Video From Literally Everything!!
26+
<br />
27+
<a href="https://github.com/ammar0xff/Mbedly/issues/new?labels=bug&template=bug-report---.md">Report Bug</a>
28+
·
29+
<a href="https://github.com/ammar0xff/Mbedly/issues/new?labels=enhancement&template=feature-request---.md">Request
30+
Feature</a>
31+
</p>
32+
</div>
33+
34+
35+
<!-- TABLE OF CONTENTS -->
36+
37+
<details>
38+
<summary>Table of Contents</summary>
39+
<ol>
40+
<li>
41+
<a href="#about-the-project">About The Project</a>
42+
<ul>
43+
<li><a href="#built-with">Built With</a></li>
44+
</ul>
45+
</li>
46+
<li>
47+
<a href="#installation">Installation</a></li>
48+
<!-- <li><a href="#usage">Usage</a></li> -->
49+
<li><a href="#roadmap">Roadmap</a></li>
50+
<li><a href="#contributing">Contributing</a></li>
51+
<li><a href="#license">License</a></li>
52+
<li><a href="#contact">Contact</a></li>
53+
<li><a href="#acknowledgments">Acknowledgments</a></li>
54+
</ol>
55+
</details>
56+
57+
58+
59+
<!-- ABOUT THE PROJECT -->
60+
## About The Project
61+
<a href="https://github.com/ammar0xff/Mbedly"><img src="images/project_screenshot.png" alt="Banner"></a>
62+
63+
Ever dreamed of a magical video downloader that could snatch up every single Udemy lecture like a squirrel hoarding acorns? Well, Mbedly is your fairy godmother! It's like a video-grabbing ninja, sneaking into all sorts of online classrooms and bringing back the loot (aka your favorite courses).
64+
65+
So, whether you're after a single video or an entire course series, Mbedly's got your back (as long as the site's on our magical <a href="#roadmap">Roadmap</a>, of course).
66+
67+
68+
69+
70+
71+
72+
73+
74+
### Built With
75+
76+
<p>
77+
<img src="https://img.shields.io/badge/Python-14354C?style=for-the-badge&logo=python&logoColor=white"/>
78+
<img src="https://img.shields.io/badge/GNU%20Bash-4EAA25?style=for-the-badge&logo=GNU%20Bash&logoColor=white"/>
79+
80+
81+
</p>
82+
83+
84+
<!-- GETTING STARTED -->
85+
86+
## Installation
87+
88+
1. Clone the repo
89+
```sh
90+
git clone https://github.com/ammar0xff/Mbedly.git ; cd Mbedly
91+
```
92+
2. Install all necessary packages and libraries
93+
```sh
94+
sudo ./install.sh
95+
```
96+
97+
98+
99+
100+
<!-- USAGE EXAMPLES -->
101+
<!-- ## Usage
102+
103+
Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos
104+
work well in this space. You may also link to more resources.
105+
106+
_For more examples, please refer to the [Documentation](https://example.com)_ -->
107+
108+
109+
110+
111+
<!-- ROADMAP -->
112+
## Roadmap
113+
114+
- [x] Extract any embedded video links from any site & download it.
115+
- [x] Download a youtube video like any regular downloader.
116+
- [x] Auto-Extract supported sites:
117+
- [x] Mahara-Tech
118+
- [ ] EgyBest
119+
- [ ] Alison
120+
- [ ] Coursera
121+
- [ ] StarDima
122+
- [ ] Udemy
123+
- [x] Supported Videos:
124+
- [x] YouTube
125+
- [ ] Facebook
126+
- [ ] Instagram
127+
- [ ] Twitter
128+
- [ ] TikTok
129+
- [ ] ViiiVideo
130+
- [ ] Mega
131+
132+
See the [open issues](https://github.com/ammar0xff/Mbedly/issues) for a full list of proposed features (and known
133+
issues).
134+
135+
136+
137+
138+
<!-- CONTRIBUTING -->
139+
## Contributing
140+
141+
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any
142+
contributions you make are **greatly appreciated**.
143+
144+
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also
145+
simply open an issue with the tag "enhancement".
146+
Don't forget to give the project a star! Thanks again!
147+
148+
1. Fork the Project
149+
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
150+
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
151+
4. Push to the Branch (`git push origin feature/AmazingFeature`)
152+
5. Open a Pull Request
153+
154+
155+
### Top contributors:
156+
157+
<a href="https://github.com/ammar0xff/Mbedly/graphs/contributors">
158+
<img src="https://contrib.rocks/image?repo=ammar0xff/Mbedly" alt="contrib.rocks image" />
159+
</a>
160+
161+
162+
163+
<!-- LICENSE -->
164+
## License
165+
166+
Distributed under the MIT License. See `LICENSE.txt` for more information.
167+
168+
169+
170+
171+
<!-- CONTACT -->
172+
## Contact
173+
174+
Ammar Mohamed - ammar0xf@gmail.com
175+
176+
Project Link: [https://github.com/ammar0xff/Mbedly](https://github.com/ammar0xff/Mbedly)
177+
178+
179+
180+
181+
<!-- ACKNOWLEDGMENTS -->
182+
## Acknowledgments
183+
184+
* [yt-dlp](https://github.com/yt-dlp/yt-dlp)
185+

extractors/mahara.sh

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#!/bin/bash
2+
3+
url=$1
4+
cookie=$2
5+
6+
function ExtractCourseVideoLinksFirst {
7+
curl -s --cookie $cookie "$url" \
8+
| grep 'http' \
9+
| tr " " "\n" \
10+
| tr ">" "\n" \
11+
| tr '<' "\n" \
12+
| tr '`' "\n" \
13+
| tr '"' "\n" \
14+
| tr '(' "\n"\
15+
| tr "'" "\n" \
16+
| tr -d '[' \
17+
| tr -d ']' \
18+
| tr -d '\' 2> /dev/null \
19+
| grep -v "channel" \
20+
| grep -v "Quickbooks" \
21+
| sed 's/^.*http/http/' \
22+
| sort \
23+
| uniq\
24+
| grep "http" | grep hvp | grep -v "image"
25+
26+
}
27+
CourseVDS=$(ExtractCourseVideoLinksFirst)
28+
29+
while read video; do
30+
curl -s --cookie $cookie "$video" \
31+
| grep 'http' \
32+
| tr " " "\n" \
33+
| tr ">" "\n" \
34+
| tr '<' "\n" \
35+
| tr '`' "\n" \
36+
| tr '"' "\n" \
37+
| tr '(' "\n"\
38+
| tr "'" "\n" \
39+
| tr -d '[' \
40+
| tr -d ']' \
41+
| tr -d '\' 2> /dev/null \
42+
| grep -v "channel" \
43+
| grep -v "Quickbooks" \
44+
| sed 's/^.*http/http/' \
45+
| sort \
46+
| uniq\
47+
| grep "http" \
48+
| grep "youtu"
49+
50+
done <<< $CourseVDS

extractors/yt-dlp

33 MB
Binary file not shown.

images/banner.png

2.51 MB
Loading

images/logo.png

500 KB
Loading

images/project_screenshot.png

10.9 KB
Loading

install.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
4+
5+
if [ $(id -u) -ne 0 ]
6+
then echo Please run this script as root or using sudo!
7+
exit
8+
fi
9+
10+
11+
apt update
12+
apt install curl -y

0 commit comments

Comments
 (0)