Ir para conteúdo
View in the app

A better way to browse. Learn more.

GGames Fórum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

 

Para fins de coleta de dados e criação de planilhas, extrair todos os nomes e links dos vídeos publicados numa rede é muito importante. Nesse vídeo aqui eu mostro como fazer isso no youtube.

 

Os códigos usados no vídeo foram:

Primeiro: var scroll = setInterval(function(){ window.scrollBy(0, 1000)}, 1000);

Segundo: window.clearInterval(scroll);console.clear();urls = $$('a');urls.forEach(function(v,i,a){if (v.id=="video-title-link" && v.href){console.log('\t'+v.title+'\t'+v.href+'\t')}});

 

Feedback do Usuário

Comentários Recomendados

AlexUFC

VIP Vitalício

Postado

  • VIP Vitalício

Frosted Flakes Swerk GIF

zeldas22

Leecher

Postado

Ótima dica! Não sabia que dava para extrair os nomes e links dos vídeos assim tão facilmente. Vai ajudar muito na hora de organizar os dados e montar as planilhas. O vídeo ficou bem explicadinho, já vou testar isso! Com certeza vou usar bastante para agilizar meu trabalho no YouTube

Crie uma conta ou entre para comentar

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.