vaakian / xted

Ted transcript as a more readable format.
https://xted.vercel.app
4 stars 0 forks source link

replace scraper using GraphQL #2

Open vaakian opened 1 year ago

vaakian commented 1 year ago
{
  videos(language: "en", channel: FEATURED first: 2, slug: "angela_mahecha_adrar_the_people_who_caused_the_climate_crisis_aren_t_the_ones_who_will_fix_it") {
    edges {
      node {
      videometricsVideoId
      id
      title
      description
      duration
      # 同样是标题id
      slug
      publishedSubtitleLanguages(first: 9999) {
        edges {
          node {
            iso6391
            iso6393
            isRtl
            ianaSubtag
            endonym
            englishName
            internalLanguageCode

          }
        }
      }
      primaryImageSet {
        url
        aspectRatio {
          name
        }
      }
        canonicalUrl
      nativeDownloads {
        high
        medium
      }
      audioDownload
      videoDownloads {
        nodes {
          url
        }
      }
    }
      cursor
    }
  }
}
vaakian commented 1 year ago
{
  video(slug: "angela_mahecha_adrar_the_people_who_caused_the_climate_crisis_aren_t_the_ones_who_will_fix_it") {
    slug
    title
    description
    duration
  }
}