Git Product home page Git Product logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
I am also facing the same issue. Receive 410 error. Below is the response text 
- 

<errors 
xmlns='http://schemas.google.com/g/2005'><error><domain>GData</domain><code>NoLo
ngerAvailableException</code><internalReason>No longer 
available</internalReason></error></errors>

URL: 
http://gdata.youtube.com/feeds/api/users/username/uploads?orderby=published&max-
results=50

Original comment by [email protected] on 26 Jun 2015 at 6:11

from google-gdata.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
Version used Google.Gdata.youtube 2.2.0.0

Original comment by [email protected] on 26 Jun 2015 at 6:21

from google-gdata.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
does anyone have a resolution for this?

Original comment by [email protected] on 30 Jul 2015 at 11:40

from google-gdata.

oskar-j avatar oskar-j commented on June 2, 2024

It's my first time with the gdata package and I'm facing a similar issue. Is it a recent thing or there is something wrong with my code?

import sys
from gdata.youtube import service

USERNAME = sys.argv[1]  # '[email protected]'
PASSWORD = sys.argv[2]  # 'a_very_long_password'
VIDEO_ID = sys.argv[3]  # 'wf_IIbT8HGk'

def comments_generator(client, video_id):
    comment_feed = client.GetYouTubeVideoCommentFeed(video_id=video_id)
    while comment_feed is not None:
        for comment in comment_feed.entry:
             yield comment
        next_link = comment_feed.GetNextLink()
        if next_link is None:
             comment_feed = None
        else:
             comment_feed = client.GetYouTubeVideoCommentFeed(next_link.href)

client = service.YouTubeService()
client.ClientLogin(USERNAME, PASSWORD)

with open("comments_tymbark.tsv", "wb") as output:
    for comment in comments_generator(client, VIDEO_ID):
        author_name = comment.author[0].name.text
        text = comment.content.text
        comment_id = comment.id
        updated = comment.updated
        print("{0}\t{1}\t{2}\t{3}\n".format(author_name, text, comment_id, updated))
        output.write("{0}\t{1}\t{2}\t{3}\n".format(author_name, text, comment_id, updated))

Traceback (most recent call last):
  File "dataset.py", line 24, in <module>
    for comment in comments_generator(client, VIDEO_ID):
  File "dataset.py", line 9, in comments_generator
    comment_feed = client.GetYouTubeVideoCommentFeed(video_id=video_id)
  File "C:\Python27\lib\site-packages\gdata\youtube\service.py", line 270, in Ge
tYouTubeVideoCommentFeed
    uri, converter=gdata.youtube.YouTubeVideoCommentFeedFromString)
  File "C:\Python27\lib\site-packages\gdata\service.py", line 1108, in Get
    'reason': server_response.reason, 'body': result_body}
gdata.service.RequestError: {'status': 410, 'body': 'No longer available', 'reas
on': 'Gone'}

from google-gdata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.