Update lib/yt.js
Browse files
lib/yt.js
CHANGED
|
@@ -59,12 +59,13 @@ async function instagram(url) {
|
|
| 59 |
)
|
| 60 |
|
| 61 |
const $ = cheerio.load(data.data)
|
| 62 |
-
|
| 63 |
-
|
| 64 |
.map((_, el) => ({
|
| 65 |
-
|
| 66 |
-
})
|
| 67 |
.get()
|
|
|
|
| 68 |
}
|
| 69 |
|
| 70 |
async function threads(url) {
|
|
|
|
| 59 |
)
|
| 60 |
|
| 61 |
const $ = cheerio.load(data.data)
|
| 62 |
+
const rres = [];
|
| 63 |
+
$('a.abutton.is-success.is-fullwidth.btn-premium')
|
| 64 |
.map((_, el) => ({
|
| 65 |
+
rres.push($(el).attr('href'));
|
| 66 |
+
})
|
| 67 |
.get()
|
| 68 |
+
return rres
|
| 69 |
}
|
| 70 |
|
| 71 |
async function threads(url) {
|