diff --git a/youtube_dl/extractor/__init__.py b/youtube_dl/extractor/__init__.py index a9aa7e506..1032dd1d4 100644 --- a/youtube_dl/extractor/__init__.py +++ b/youtube_dl/extractor/__init__.py @@ -15,6 +15,7 @@ from .escapist import EscapistIE from .facebook import FacebookIE from .flickr import FlickrIE from .funnyordie import FunnyOrDieIE +from .gamespot import GameSpotIE from .gametrailers import GametrailersIE from .generic import GenericIE from .googleplus import GooglePlusIE @@ -140,6 +141,7 @@ def gen_extractors(): WimpIE(), HotNewHipHopIE(), AUEngineIE(), + GameSpotIE(), GenericIE() ] diff --git a/youtube_dl/extractor/gamespot.py b/youtube_dl/extractor/gamespot.py new file mode 100644 index 000000000..37d7df8f5 --- /dev/null +++ b/youtube_dl/extractor/gamespot.py @@ -0,0 +1,34 @@ +import re + +from .common import InfoExtractor + + +class GameSpotIE(InfoExtractor): + _VALID_URL = r'(?:http://)?(?:www\.)?gamespot\.com/([^/]+)/videos/([^/]+)-([^/d]+)/' + + def _real_extract(self, url): + mobj = re.match(self._VALID_URL, url) + video_id = mobj.group(3).split("-")[-1] + webpage = self._download_webpage(url, video_id) + title = self._search_regex(r'