ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.32k stars 10.03k forks source link

I have an issue with [Vice] not working for https, [youtube] does. #8559

Closed indywatch closed 8 years ago

indywatch commented 8 years ago

Not sure how widespread this is, but youtube works with htpps.

aliasd@melbourne:~$ youtube-dl https://www.vice.com/video/drinking-wine-and-playing-chess-at-martin-shkrelis-midtown-apartment [Vice] drinking-wine-and-playing-chess-at-martin-shkrelis-midtown-apartment: Downloading webpage ERROR: Unable to download webpage: <urlopen error [Errno 1] _ssl.c:504: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure> (caused by URLError(SSLError(1, '_ssl.c:504: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure'),)) aliasd@melbourne:~$ youtube-dl http://www.vice.com/video/drinking-wine-and-playing-chess-at-martin-shkrelis-midtown-apartment [Vice] drinking-wine-and-playing-chess-at-martin-shkrelis-midtown-apartment: Downloading webpage [Ooyala] t2bThqMDE6qis5lwVSM1toAKRl5t_CMY: Downloading JSON metadata [Ooyala] t2bThqMDE6qis5lwVSM1toAKRl5t_CMY: Downloading mp4 JSON [Ooyala] t2bThqMDE6qis5lwVSM1toAKRl5t_CMY: Downloading m3u8 JSON ...

Full output...

aliasd@melbourne:~$ youtube-dl -v https://www.vice.com/video/drinking-wine-and-playing-chess-at-martin-shkrelis-midtown-apartment
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'https://www.vice.com/video/drinking-wine-and-playing-chess-at-martin-shkrelis-midtown-apartment']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.02.13
[debug] Python version 2.7.3 - Linux-3.2.0-98-generic-i686-with-Ubuntu-12.04-precise
[debug] exe versions: avconv 0.8.17-4, avprobe 0.8.17-4, ffmpeg 0.8.17-4, ffprobe 0.8.17-4, rtmpdump 2.4
[debug] Proxy map: {}
[Vice] drinking-wine-and-playing-chess-at-martin-shkrelis-midtown-apartment: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [Errno 1] _ssl.c:504: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure> (caused by URLError(SSLError(1, '_ssl.c:504: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure'),))
  File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 354, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1905, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 400, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 418, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/bin/youtube-dl/youtube_dl/utils.py", line 830, in https_open
    req, **kwargs)
  File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open
    raise URLError(err)
yan12125 commented 8 years ago

Could you post the output of the following command:

curl -vvv https://www.vice.com/video/drinking-wine-and-playing-chess-at-martin-shkrelis-midtown-apartment
yan12125 commented 8 years ago

For me it works with Python 2.7.11 but fails in Python 2.6.9. I guess it's the same problem as https://github.com/rg3/youtube-dl/issues/5366#issuecomment-93186417 (not checked yet). Could you try again Python 3 or Python 2.7.9+?

dstftw commented 8 years ago

For me it fails with 2.6.6, 3.3.4 and works with 2.7.10, 3.4.3.

indywatch commented 8 years ago

So, I guess I can confirm it fails in 2.7.3

aliasd@melbourne:~$ python --version
Python 2.7.3

FWIW:

aliasd@melbourne:~$ curl -vvv https://www.vice.com/video/drinking-wine-and-playing-chess-at-martin-shkrelis-midtown-apartment
* About to connect() to www.vice.com port 443 (#0)
*   Trying 54.192.85.40... connected
* successfully set certificate verify locations:
*   CAfile: none
  CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using ECDHE-RSA-AES128-GCM-SHA256
* Server certificate:
*    subject: OU=GT20224955; OU=See www.rapidssl.com/resources/cps (c)14; OU=Domain Control Validated - RapidSSL(R); CN=*.vice.com
*    start date: 2014-11-11 05:56:07 GMT
*    expire date: 2018-08-22 22:40:47 GMT
*    subjectAltName: www.vice.com matched
*    issuer: C=US; O=GeoTrust Inc.; CN=RapidSSL SHA256 CA - G3
*    SSL certificate verify ok.
> GET /video/drinking-wine-and-playing-chess-at-martin-shkrelis-midtown-apartment HTTP/1.1
> User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: www.vice.com
> Accept: */*
> 
< HTTP/1.1 200 OK
< Content-Type: text/html; charset=UTF-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< Cache-Control: max-age=1500, must-revalidate
< Date: Sun, 14 Feb 2016 23:48:13 GMT
< Expires: Mon, 15 Feb 2016 00:13:12 GMT
< Pragma: public
< Server: nginx
< Strict-Transport-Security: max-age=0; includeSubDomains
< X-Frame-Options: SAMEORIGIN
< X-XSS-Protection: 1; mode=block
< Vary: Accept-Encoding,Accept-Encoding
< X-Cache: Miss from cloudfront
< Via: 1.1 b1bc2212a23f7fe1b0e28287bb36b9e5.cloudfront.net (CloudFront)
< X-Amz-Cf-Id: PFMS4Hk6siiRhClMUCCk8qeMyBdVHxpSN1nBqT8rjfsYGq_B0_3erw==
< 
<!doctype html>
<html class="no-js" lang="en">
<head>
    <meta charset="UTF-8" name="charset" content="" />
<meta name="" http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta property="og:title" name="og:title" content="Watch: Martin Shkreli on Drug Price Hikes and Playing the World’s Villain | VICE | United States" />
<meta name="twitter:title" content="Watch: Martin Shkreli on Drug Price Hikes and Playing the World’s Villain | VICE | United States" />
<meta name="keywords" content="martin shkreli, vice special, allie conti, finance, pharma bro, martin shkreli interview, wu tang clan, once upon a time in shaolin, martin shkreli fraud, Daraprim, rap, rza, big pharma, stocks, prescription drugs, price gouging, interview, pharmaceuticals" />
<meta name="description" content="An exclusive interview with the new poster child of capitalistic greed." />
<meta property="og:description" name="og:description" content="An exclusive interview with the new poster child of capitalistic greed." />
<meta name="twitter:description" content="An exclusive interview with the new poster child of capitalistic greed." />
<meta property="og:url" name="og:url" content="https://www.vice.com/video/drinking-wine-and-playing-chess-at-martin-shkrelis-midtown-apartment" />
<meta name="twitter:url" content="https://www.vice.com/video/drinking-wine-and-playing-chess-at-martin-shkrelis-midtown-apartment" />
<meta property="og:type" name="og:type" content="article" />
<meta property="og:site_name" name="og:site_name" content="VICE" />
<meta name="twitter:site" content="@vice" />
<meta name="twitter:card" content="summary_large_image" />
<meta property="og:image" name="og:image" content="https://vice-images.vice.com/images/articles/meta/2016/01/29/sitting-down-with-martin-shkreli-at-his-midtown-apartment-1454075862.jpg?resize=*:*&amp;output-quality=75" />
<meta property="og:image:type" name="og:image:type" content="image/jpeg" />
<meta name="twitter:image" content="https://vice-images.vice.com/images/articles/crops/2016/01/29/sitting-down-with-martin-shkreli-at-his-midtown-apartment-1454075862-crop_social.jpg?resize=*:*&amp;output-quality=75" />
<meta property="og:locale" name="og:locale" content="en_us" />
<meta property="fb:app_id" name="fb:app_id" content="203796769683945" />
<meta name="thumbnail" content="https://vice-images.vice.com/images/articles/crops/2016/01/29/sitting-down-with-martin-shkreli-at-his-midtown-apartment-1454075862-crop_social.jpg?resize=*:*&amp;output-quality=75" />
<meta name="msapplication-TileColor" content="#FFFFFF" />
<meta name="msapplication-square70x70logo" content="/assets/images/vice/favicons/mstile-70x70.png" />
<meta name="msapplication-TileImage" content="/assets/images/vice/favicons/mstile-144x144.png" />
<meta name="msapplication-square150x150logo" content="/assets/images/vice/favicons/mstile-150x150.png" />
<meta name="msapplication-wide310x150logo" content="/assets/images/vice/favicons/mstile-310x150.png" />
<meta name="msapplication-square310x310logo" content="/assets/images/vice/favicons/mstile-310x310.png" />
<meta name="taxonomy" content="/technology and computing/internet technology/social network | /health and fitness/disease/aids and hiv | /real estate/apartments" />
<meta name="sailthru.title" content="Watch: Martin Shkreli on Drug Price Hikes and Playing the World\&#039;s Villain | VICE | United States" />
<meta name="sailthru.url" content="https://www.vice.com/video/drinking-wine-and-playing-chess-at-martin-shkrelis-midtown-apartment" />
<meta name="sailthru.locale" content="en-us" />
<meta name="sailthru.publish_date" content="2016-02-14T23:48:13+00:00" />
<meta name="sailthru.description" content="An exclusive interview with the new poster child of capitalistic greed." />
<meta name="sailthru.author" content="" />
<meta name="sailthru.item_type" content="article" />
<meta name="sailthru.expire_date" content="2016-02-15" />
<meta name="sailthru.primary" content="vicecom" />
<meta name="sailthru.tags" content="martin shkreli, vice special, allie conti, finance, pharma bro, martin shkreli interview, wu tang clan, once upon a time in shaolin, martin shkreli fraud, Daraprim, rap, rza, big pharma, stocks, prescription drugs, price gouging, interview, pharmaceuticals, vicecom-en-us" />
<link hreflang="en-us" rel="alternate" href="https://www.vice.com/video/drinking-wine-and-playing-chess-at-martin-shkrelis-midtown-apartment" />
<link hreflang="en-ca" rel="alternate" href="https://www.vice.com/en_ca/video/drinking-wine-and-playing-chess-at-martin-shkrelis-midtown-apartment" />
<link hreflang="en-nz" rel="alternate" href="https://www.vice.com/en_au/video/drinking-wine-and-playing-chess-at-martin-shkrelis-midtown-apartment" />
<link hreflang="x-default" rel="alternate" href="https://www.vice.com/video/drinking-wine-and-playing-chess-at-martin-shkrelis-midtown-apartment" />
<link rel="alternate" type="application/rss+xml" href="https://www.vice.com/rss" />
<link rel="canonical" href="https://www.vice.com/video/drinking-wine-and-playing-chess-at-martin-shkrelis-midtown-apartment" />
<link rel="stylesheet" href="/assets/css/vice/style.css?v20160203163202" />
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="icon" href="/favicon.ico" />
<link sizes="57x57" rel="apple-touch-icon-precomposed" href="/assets/images/vice/favicons/apple-touch-icon-57x57.png" />
<link sizes="60x60" rel="apple-touch-icon-precomposed" href="/assets/images/vice/favicons/apple-touch-icon-60x60.png" />
<link sizes="72x72" rel="apple-touch-icon-precomposed" href="/assets/images/vice/favicons/apple-touch-icon-72x72.png" />
<link sizes="76x76" rel="apple-touch-icon-precomposed" href="/assets/images/vice/favicons/apple-touch-icon-76x76.png" />
<link sizes="114x114" rel="apple-touch-icon-precomposed" href="/assets/images/vice/favicons/apple-touch-icon-114x114.png" />
<link sizes="120x120" rel="apple-touch-icon-precomposed" href="/assets/images/vice/favicons/apple-touch-icon-120x120.png" />
<link sizes="144x144" rel="apple-touch-icon-precomposed" href="/assets/images/vice/favicons/apple-touch-icon-144x144.png" />
<link sizes="152x152" rel="apple-touch-icon-precomposed" href="/assets/images/vice/favicons/apple-touch-icon-152x152.png" />
<link sizes="16x16" type="image/png" rel="icon" href="/assets/images/vice/favicons/favicon-16x16.png" />
<link sizes="32x32" type="image/png" rel="icon" href="/assets/images/vice/favicons/favicon-32x32.png" />
<link sizes="96x96" type="image/png" rel="icon" href="/assets/images/vice/favicons/favicon-96x96.png" />
<link sizes="196x196" type="image/png" rel="icon" href="/assets/images/vice/favicons/favicon-196x196.png" />
<link sizes="128x128" type="image/png" rel="icon" href="/assets/images/vice/favicons/favicon-128.png" />
<link rel="next" href="https://www.vice.com/video/rob-fords-sobriety-coach-inside-the-manic-life-work-of-bob-marier" />
<script type="text/javascript" src="/assets/js/vmp/lib/modernizr-2.5.3.min.js" async="async"></script>
<script type="text/javascript" src="//advice-ads-cdn.vice.com/DE/viceIVW-CS.js" async="async"></script>
<script type="text/javascript">
/*<![CDATA[*/
//Begin Analytics Code
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-599058-49', 'auto', {'name' : 'tracker_1'});

ga('tracker_1.set', 'contentGroup2', 'stuff');
ga('tracker_1.set', 'contentGroup3', 'Allie Conti');
ga('tracker_1.set', 'contentGroup4', '2016_01_29');
ga('tracker_1.set', 'contentGroup5', '2016_01');

ga('tracker_1.require', 'displayfeatures');

ga('tracker_1.send', 'pageview', {"page":"\/en_us\/video\/drinking-wine-and-playing-chess-at-martin-shkrelis-midtown-apartment"});

/*]]>*/
</script>
<title>Watch: Martin Shkreli on Drug Price Hikes and Playing the World’s Villain | VICE | United States</title>
</head>
<body class="videos-page single-page  en_us">
    <section class="site-wrapper">
        <div id="viceContentAd" data-src="v-vice-stuff"></div>
    <div class="vmp-ad ad-overlay" data-ref="overlay"></div><nav class="site-menu">
    <div class="search-container">
        <div class="site-icon search"></div>

        <form action="/search" method="GET" name="search">
            <input type="text" name="query" placeholder="Search..." />
        </form>
    </div>

    <ul class="parent-list">

<section class="items-container" id=""><li class="parent-item no-children" id="main-nav-heading-1">
    <a href="/videos">      Watch   </a></li>
    <ul class="child-list watch">
            </ul>
<li class="parent-item no-link" id="main-nav-heading-2">
            Sections    </li>
    <ul class="child-list sections">
        <li><a href="/news">News</a></li><li><a href="/music">Music</a></li><li><a href="/fashion">Fashion</a></li><li><a href="/travel">Travel</a></li><li><a href="/sports">Sports</a></li><li><a href="/tech">Tech</a></li><li><a href="/food">Food</a></li><li><a href="/gaming">Gaming</a></li><li><a href="/nsfw">Nsfw</a></li><li><a href="/dnd">Dos & Don'ts</a></li>   </ul>
<li class="parent-item no-children" id="main-nav-heading-3">
    <a href="/photos">      Photos  </a></li>
    <ul class="child-list photos">
            </ul>
<li class="parent-item no-children" id="main-nav-heading-4">
    <a href="/magazine">        Magazine    </a></li>
    <ul class="child-list magazine">
            </ul>
<li class="parent-item no-link" id="main-nav-heading-5">
            Topics  </li>
    <ul class="child-list topics">
        <li><a href="/cityguides">City Guides</a></li><li><a href="/series/vice-guide-to-the-2016-election">Election 2016</a></li><li><a href="/tag/opinion">Opinion</a></li><li><a href="/tag/environment">Environment</a></li><li><a href="/tag/lgbt">LGBT</a></li><li><a href="/tag/crime">Crime</a></li><li><a href="/tag/culture">Culture</a></li> </ul>
</section>

                    <li class="parent-item">
                <a href="/pages/about" class="about-link">
                    About               </a>
            </li>
                <ul class="child-list about">
        <li><a href="/pages/jobs">Careers</a></li><li><a href="/pages/about">Contact</a></li><li><a href="/pages/about">Advertising</a></li><li><a href="/pages/about">Press Kit</a></li><li><a href="/pages/shane-smith">Founders</a></li><li><a href="http://store.vice.com">Store</a></li><li><a href="/pages/privacy-and-terms">Privacy & Terms</a></li>                </ul>
    </ul>
</nav><section class="vice-network-bar">
    <section class="links">
        <div class="link-trigger">
            <a href="/pages/about">
                About           </a>
        </div>

        <ul>
            <li><a href="/pages/about">About Us</a></li><li><a href="/pages/jobs">Careers</a></li><li><a href="/pages/about">Contact</a></li><li><a href="/pages/about">Advertising</a></li><li><a href="/pages/about">Press Kit</a></li><li><a href="/pages/shane-smith">Founders</a></li><li><a href="http://store.vice.com">Store</a></li><li><a href="/pages/privacy-and-terms">Privacy & Terms</a></li>        </ul>
    </section>

    <span class="copyright">&copy;2016 VICE Media LLC</span>

    <p class="version"></p>

    <section class="locales">
        <div class="current-locale"></div>

        <ul></ul>
    </section>

    <section class="family">
        <h2 class="family-trigger">The <span class="icon-sprite">VICE</span> Channels</h2>

        <ul></ul>
    </section>
</section>

<header class="site-header main-header">
    <div class="site-header-inner">
        <button class="site-icon hamburger menu-non-rounded"></button>

        <div class="logo">
            <a href="/" title="VICE">
                <span></span>
            </a>
        </div>

        <div class="navigation-items-container">
            <nav class="navigation-items main-nav">

<ul class="items-container" id=""><li class="trigger main-nav-trigger watch" data-navigation-item-key="watch">
    <a href="/videos">      Watch   </a></li><!----><li class="trigger main-nav-trigger sections no-link" data-navigation-item-key="sections">
            Sections    </li><!----><li class="trigger main-nav-trigger photos" data-navigation-item-key="photos">
    <a href="/photos">      Photos  </a></li><!----><li class="trigger main-nav-trigger magazine no-dropdown" data-navigation-item-key="magazine">
    <a href="/magazine">        Magazine    </a></li></ul>
            </nav>

            <nav class="navigation-items more small-viewport">
                                    <ul class="items-container">
                        <li class="trigger no-link" data-navigation-item-key="more/topics">
                            <span class="small-viewport">
                                Topics                          </span>
                            <span class="large-viewport">
                                More                            </span>
                        </li>
                    </ul>
                            </nav>

            <nav class="navigation-items inline">

<ul class="items-container" id=""><li class="nav-title no-link">
    Topics:
</li><!--
--><li class="trigger inline-trigger city+guides" data-navigation-item-key="topics/city+guides">
    <a href="/cityguides">      City Guides </a></li><!----><li class="trigger inline-trigger Election 2016" data-navigation-item-key="topics/Election 2016">
    <a href="/series/vice-guide-to-the-2016-election">      Election 2016   </a></li><!----><li class="trigger inline-trigger opinion" data-navigation-item-key="topics/opinion">
    <a href="/tag/opinion">     Opinion </a></li><!----><li class="trigger inline-trigger environment" data-navigation-item-key="topics/environment">
    <a href="/tag/environment">     Environment </a></li><!----><li class="trigger inline-trigger lgbt" data-navigation-item-key="topics/lgbt">
    <a href="/tag/lgbt">        LGBT    </a></li><!----><li class="trigger inline-trigger crime" data-navigation-item-key="topics/crime">
    <a href="/tag/crime">       Crime   </a></li><!----><li class="trigger inline-trigger culture" data-navigation-item-key="topics/culture">
    <a href="/tag/culture">     Culture </a></li>
</ul>
            </nav>
        </div>

        <div class="social-icons">
            <ul>
                <li class="google-plus">
                    <a class="site-icon google-plus-logo" href="https://plus.google.com/+VICE" target="_blank"></a>
                </li><!--
                --><li class="facebook">
                    <a class="site-icon facebook-logo" href="https://www.facebook.com/Vice" target="_blank"></a>
                </li><!--
                --><li>
                    <a class="site-icon twitter-logo" href="https://twitter.com/vice" target="_blank"></a>
                </li><!--
                --><li class="tumblr">
                    <a class="site-icon tumblr-logo" href="https://www.tumblr.com/follow/vicemag" target="_blank"></a>
                </li><!--
                --><li class="subscribe">
                    <a class="site-icon email-envelope" href="https://confirmsubscription.com/h/i/48178908AA2FD075" target="_blank"></a>
                </li><!--
                --><li class="rss">
                    <a class="site-icon rss-logo" href="/rss"></a>
                </li><!--
                --><li class="youtube">
                    <a class="site-icon youtube-play" href="https://www.youtube.com/user/vice" target="_blank"></a>
                </li>
            </ul>
        </div>

        <div class="search-container">
            <button class="site-icon search" type="button"></button>
            <button class="site-icon cancel" type="button"></button>

            <div class="searchbox-container">
                <div class="gcse-searchbox-only" data-resultsUrl="/search" data-queryParameterName="query"></div>
            </div>
        </div>

        <nav class="navigation-items more large-viewport">
                            <ul class="items-container">
                    <li class="trigger no-link" data-navigation-item-key="more/topics">
                        <span class="small-viewport">
                            Topics                      </span>
                        <span class="large-viewport">
                            More                        </span>
                    </li>
                </ul>
                    </nav>
    </div>

    <div class="site-header-drop-downs">
        <div class="navigation-groups-container">
            <div class="navigation-group inline-group watch" data-navigation-item-key="watch">
    <div class="menu-items-container inline-items-container"></div>
</div><div class="navigation-group sub-navigation-group" data-navigation-item-key="sections">
    <div class="sub-navigation-items-container">

<ul class="items-container" id=""><li data-sub-navigation-item-key="sections/news">
    <a href="/news">        News    </a></li><!-- -->
<li data-sub-navigation-item-key="sections/music">
    <a href="/music">       Music   </a></li><!-- -->
<li data-sub-navigation-item-key="sections/fashion">
    <a href="/fashion">     Fashion </a></li><!-- -->
<li data-sub-navigation-item-key="sections/travel">
    <a href="/travel">      Travel  </a></li><!-- -->
<li data-sub-navigation-item-key="sections/sports">
    <a href="/sports">      Sports  </a></li><!-- -->
<li data-sub-navigation-item-key="sections/tech">
    <a href="/tech">        Tech    </a></li><!-- -->
<li data-sub-navigation-item-key="sections/food">
    <a href="/food">        Food    </a></li><!-- -->
<li data-sub-navigation-item-key="sections/gaming">
    <a href="/gaming">      Gaming  </a></li><!-- -->
<li data-sub-navigation-item-key="sections/nsfw">
    <a href="/nsfw">        Nsfw    </a></li><!-- -->
<li data-sub-navigation-item-key="sections/dos-and-donts">
    <a href="/dnd">     Dos & Don'ts    </a></li><!-- -->
</ul>
    </div>

    <div class="sub-navigation-items">

<div class="sub-navigation-group news" data-sub-navigation-item-key="sections/news">
    <div class="menu-items-container"></div>
</div><div class="sub-navigation-group music" data-sub-navigation-item-key="sections/music">
    <div class="menu-items-container"></div>
</div><div class="sub-navigation-group fashion" data-sub-navigation-item-key="sections/fashion">
    <div class="menu-items-container"></div>
</div><div class="sub-navigation-group travel" data-sub-navigation-item-key="sections/travel">
    <div class="menu-items-container"></div>
</div><div class="sub-navigation-group sports" data-sub-navigation-item-key="sections/sports">
    <div class="menu-items-container"></div>
</div><div class="sub-navigation-group tech" data-sub-navigation-item-key="sections/tech">
    <div class="menu-items-container"></div>
</div><div class="sub-navigation-group food" data-sub-navigation-item-key="sections/food">
    <div class="menu-items-container"></div>
</div><div class="sub-navigation-group gaming" data-sub-navigation-item-key="sections/gaming">
    <div class="menu-items-container"></div>
</div><div class="sub-navigation-group nsfw" data-sub-navigation-item-key="sections/nsfw">
    <div class="menu-items-container"></div>
</div><div class="sub-navigation-group dos-and-donts" data-sub-navigation-item-key="sections/dos-and-donts">
    <div class="menu-items-container"></div>
</div>
    </div>
</div><div class="navigation-group inline-group photos" data-navigation-item-key="photos">
    <div class="menu-items-container inline-items-container"></div>
</div><div class="navigation-group inline-group city+guides" data-navigation-item-key="topics/city+guides">
    <div class="menu-items-container inline-items-container"></div>
</div><div class="navigation-group inline-group Election 2016" data-navigation-item-key="topics/Election 2016">
    <div class="menu-items-container inline-items-container"></div>
</div><div class="navigation-group inline-group opinion" data-navigation-item-key="topics/opinion">
    <div class="menu-items-container inline-items-container"></div>
</div><div class="navigation-group inline-group environment" data-navigation-item-key="topics/environment">
    <div class="menu-items-container inline-items-container"></div>
</div><div class="navigation-group inline-group lgbt" data-navigation-item-key="topics/lgbt">
    <div class="menu-items-container inline-items-container"></div>
</div><div class="navigation-group inline-group crime" data-navigation-item-key="topics/crime">
    <div class="menu-items-container inline-items-container"></div>
</div><div class="navigation-group inline-group culture" data-navigation-item-key="topics/culture">
    <div class="menu-items-container inline-items-container"></div>
</div><div class="navigation-group sub-navigation-group" data-navigation-item-key="more/topics">
    <div class="sub-navigation-items-container">

<ul class="items-container" id=""><li data-sub-navigation-item-key="more/topics/city+guides">
    <a href="/cityguides">      City Guides </a></li><!-- -->
<li data-sub-navigation-item-key="more/topics/Election 2016">
    <a href="/series/vice-guide-to-the-2016-election">      Election 2016   </a></li><!-- -->
<li data-sub-navigation-item-key="more/topics/opinion">
    <a href="/tag/opinion">     Opinion </a></li><!-- -->
<li data-sub-navigation-item-key="more/topics/environment">
    <a href="/tag/environment">     Environment </a></li><!-- -->
<li data-sub-navigation-item-key="more/topics/lgbt">
    <a href="/tag/lgbt">        LGBT    </a></li><!-- -->
<li data-sub-navigation-item-key="more/topics/crime">
    <a href="/tag/crime">       Crime   </a></li><!-- -->
<li data-sub-navigation-item-key="more/topics/culture">
    <a href="/tag/culture">     Culture </a></li><!-- -->
</ul>
    </div>

    <div class="sub-navigation-items">

<div class="sub-navigation-group city+guides" data-sub-navigation-item-key="more/topics/city+guides">
    <div class="menu-items-container"></div>
</div><div class="sub-navigation-group Election 2016" data-sub-navigation-item-key="more/topics/Election 2016">
    <div class="menu-items-container"></div>
</div><div class="sub-navigation-group opinion" data-sub-navigation-item-key="more/topics/opinion">
    <div class="menu-items-container"></div>
</div><div class="sub-navigation-group environment" data-sub-navigation-item-key="more/topics/environment">
    <div class="menu-items-container"></div>
</div><div class="sub-navigation-group lgbt" data-sub-navigation-item-key="more/topics/lgbt">
    <div class="menu-items-container"></div>
</div><div class="sub-navigation-group crime" data-sub-navigation-item-key="more/topics/crime">
    <div class="menu-items-container"></div>
</div><div class="sub-navigation-group culture" data-sub-navigation-item-key="more/topics/culture">
    <div class="menu-items-container"></div>
</div>
    </div>
</div><script type="text/template" id="nav-item-template">
    <% if(thumb_html) { %>
        <div class="image-container">
            <a href="<%= url %>">
                <% if(is_link_out){ %>
                    <div class="link-out-container <%= link_out_class %>">
                        <div class="site-logo"></div>
                    </div>
                <% } %>

                <%= thumb_html %>

                <% if(media_type_id == 1 && video_duration_visual != false){ %>
                    <div class="video-duration">
                        <p><%= video_duration_visual %></p>
                    </div>
                <% } %>
            </a>
        </div>
    <% } %>

    <div class="title-wrapper">
        <h2 class="item-title">
            <a href="<%= url %>">
                <%= text %>
            </a>
        </h2>
    </div>
</script>       </div>

        <div class="social-buttons-wrapper">
            <div class="social-buttons-container">
                <ul>
                    <li class="google-plus">
                         <div class="g-follow" data-height="20" data-annotation="bubble" data-href="https://plus.google.com/+VICE"></div>
                    </li><!--
                    --><li class="facebook">
                        <div id="fb-root"></div>
                        <div class="fb-like" data-href="https://www.facebook.com/Vice" data-width="200" data-layout="button_count" data-action="like" data-show-faces="false" data-share="true"></div>
                    </li><!--
                    --><li class="twitter">
                        <a href="https://twitter.com/vice" class="twitter-follow-button" data-show-count="true" data-lang="en">Follow @vice</a>
                    </li><!--
                    --><li class="tumblr">
                        <iframe class="btn" frameborder="0" border="0" scrolling="no" allowtransparency="true" height="25" width="114" src="//platform.tumblr.com/v1/follow_button.html?button_type=2&tumblelog=vice&color_scheme=dark"></iframe>
                    </li><!--
                    --><li class="subscribe">
                         <a href="https://confirmsubscription.com/h/i/48178908AA2FD075" target="_blank">
                         <span class="site-icon email-envelope">Subscribe</a>
                    </li><!--
                    --><li class="youtube">
                        <div class="g-ytsubscribe" data-channel="vice" data-layout="default" data-count="default"></div>
                    </li>

                </ul>
            </div>
        </div>
    </div>
</header>
        <div class="site-content">
            <div class="page-container videos-single-page-container " data-next-video-url="">
    <div class="video-wrapper">
        <div class="video-inner">
            <div class="video-container ooyala">
                                    <iframe src="https://embeds.vice.com/?playerId=YjMwNmI4YjU2MGM5ZWRjMzRmMjljMjc5&aid=vice.com/vice-special&vid=t2bThqMDE6qis5lwVSM1toAKRl5t_CMY&embedCode=t2bThqMDE6qis5lwVSM1toAKRl5t_CMY&cust_params=embdom%3Dhttps%3A%2F%2Fwww.vice.com%2Fvideo%2Fdrinking-wine-and-playing-chess-at-martin-shkrelis-midtown-apartment%26topic%3Dstuff%26aid%3Ddrinking-wine-and-playing-chess-at-martin-shkrelis-midtown-apartment%26auth%3DAllie+Conti%26keywords%3Dmartin+shkreli%2Cvice+special%2Callie+conti%2Cfinance%2Cpharma+bro%2Cmartin+shkreli+interview%2Cwu+tang+clan%2Conce+upon+a+time+in+shaolin%2Cmartin+shkreli+fraud%2CDaraprim%2Crap%2Crza%2Cbig+pharma%2Cstocks%2Cprescription+drugs%2Cprice+gouging%2Cinterview%2Cpharmaceuticals%26ac%3Dyes%26country%3Den_us%26contentId%3Dt2bThqMDE6qis5lwVSM1toAKRl5t_CMY&ad_rule=1&description_url=https%3A%2F%2Fwww.vice.com%2Fvideo%2Fdrinking-wine-and-playing-chess-at-martin-shkrelis-midtown-apartment&autoplay=1&share_url=https://www.vice.com/video/drinking-wine-and-playing-chess-at-martin-shkrelis-midtown-apartment" width="100%" height="100%" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>                           </div>
        </div>
    </div>

    <div class="page-inner-content">
        <div class="page-inner-wrapped-content">
            <div class="content-container">
                <div class="content">
                    <header class="content-header">
                                                    <div class="series-container">
                                <ul>
                                    <li>
                                        <a href="/videos">
                                            Series                  </a>
                                    </li><!--
                                    --><li>
                                        <a href="/series/vice-special">
                                            VICE Special                </a>
                                    </li>
                                </ul>
                            </div>

                        <h1>
                            Watch: Martin Shkreli on Drug Price Hikes and Playing the World’s Villain                     </h1>

                                            </header>

                    <div class="vmp-ad ad-sponsored" data-ref="sponsored"></div>
                                        <div class="rich-text ">
                        <p class="summary">
                            Read our profile on Martin Shkreli here.
Martin Shkreli is a 32-year-old entrepreneur. A modern day Horatio Alger story, Shkreli grew up the son of two janitors in Sheepshead Bay, Brooklyn, hustled his way into the hedge fund game, and is now worth at least $45 million. Although he made his money betting against the pharmaceutical industry, Shkreli switched to running drug companies in 2012.
In ...                      </p>

                                                    <div class="show-content-toggler show-more">
                                <p>Show More</p>
                            </div>

                        <div class="full-content">
                            <p><em>Read our profile on Martin Shkreli <a href="http://www.vice.com/read/why-is-martin-shkreli-still-talking" target="_blank">here</a>.</em>
</p><p>Martin Shkreli is a 32-year-old entrepreneur. A modern day Horatio Alger story, Shkreli grew up the son of two janitors in Sheepshead Bay, Brooklyn, hustled his way into the hedge fund game, and is now worth at least $45 million. Although he made his money betting against the pharmaceutical industry, Shkreli switched to running drug companies in 2012.
</p><p class="section">In August of last year, one of his companies, Turing Pharmaceuticals, acquired the rights to a drug called Daraprim that treats an infection called toxoplasmosis. The disease affects pregnant women, AIDS patients, and others with immunodeficiencies. When Turing raised the price of the pill by more than 5,000 percent overnight, Shkreli became the poster child for capitalistic greed.
</p><p class="section">While most pharma tycoons would slink away from the spotlight after a flogging like Shkreli endured, he took the bad-boy image and ran with it, flaunting his trollish behavior in the media. Over the past year he has funded an indie record label, claimed he would bail Bobby Shmurda out of jail (but only if Shmurda recorded some tracks for him), and purchased the singular copy of a legendary Wu-Tang Clan album with no immediate plans to let anyone outside of his apartment hear it.<br><br>In December, Shkreli was indicted on securities fraud charges and is now under investigation by Congress and the Federal Trade Commission for price gouging, so his time in the spotlight is not over yet.<br><br>I caught up with him at his Midtown apartment to meet the man behind the headlines.
</p>                        </div>

                                                    <div class="show-content-toggler show-less">
                                <p>Show Less</p>
                            </div>
                                            </div>
                </div>

                <div class="sidebar">

                    <section id="" class="collapsible-share-widget" data-title="Watch: Martin Shkreli on Drug Price Hikes and Playing the World’s Villain" data-tweet="Watch: Martin Shkreli on Drug Price Hikes and Playing the World’s Villain" data-url="http://www.vice.com/video/drinking-wine-and-playing-chess-at-martin-shkrelis-midtown-apartment" data-media="http://www.vice.com/assets/images/vice/og/og-image.jpg" data-topic=""><ul class="visible-buttons">
    <li class="share no-icon">
        <div class="share-text">Share</div>
    </li><!--
    --><li class="comment no-icon sharing-item" data-share-type="comment">
        <div>Comment</div>
    </li><!--
    --><li class="toggle">
        <div class="site-icon plus"></div>
    </li><!--
    --><li class="sharing-item twitter" data-share-type="twitter">
        <div>
            <span class="site-icon twitter-logo"></span>
            <span class="share-action">Tweet </span>
            <span class="share-text">Share On Twitter</span>
        </div>
    </li><!--
    --><li class="sharing-item facebook" data-share-type="facebook">
        <div>
            <span class="site-icon facebook-logo"></span>
            <span class="share-action">Share </span>
            <span class="share-text">Share On Facebook</span>
        </div>
    </li>
</ul>
<ul class="extra-buttons">
    <li class="sharing-item email">
        <a href="mailto:?body=Watch: Martin Shkreli on Drug Price Hikes and Playing the World’s Villain http://www.vice.com/video/drinking-wine-and-playing-chess-at-martin-shkrelis-midtown-apartment">
            <span class="site-icon email-envelope"></span>
            <span class="share-text">Email</span>
        </a>
    </li><!--
    --><li class="sharing-item reddit" data-share-type="reddit">
        <div>
            <span class="site-icon reddit-logo"></span>
            <span class="share-text">Reddit</span>
        </div>
    </li><!--
    --><li class="sharing-item pinterest" data-share-type="pinterest">
        <div>
            <span class="site-icon pinterest-logo"></span>
            <span class="share-text">Pinterest</span>
        </div>
    </li><!--
    --><li class="sharing-item tumblr" data-share-type="tumblr">
        <div>
            <span class="site-icon tumblr-logo"></span>
            <span class="share-text">Tumblr</span>
        </div>
    </li><!--
    --><li class="sharing-item google-plus" data-share-type="googleplus">
        <div>
            <span class="site-icon google-plus-logo"></span>
            <span class="share-text">Google +</span>
        </div>
    </li>
</ul>
</section>
                    <section class="topics-widget topics-container" id=""><p class="topics">
    <span>Topics:</span> <a href="/tag/martin+shkreli">martin shkreli</a>, <a href="/tag/vice+special">vice special</a>, <a href="/tag/allie+conti">allie conti</a>, <a href="/tag/finance">finance</a>, <a href="/tag/pharma+bro">pharma bro</a>, <a href="/tag/martin+shkreli+interview">martin shkreli interview</a>, <a href="/tag/wu+tang+clan">wu tang clan</a>, <a href="/tag/once+upon+a+time+in+shaolin">once upon a time in shaolin</a>, <a href="/tag/martin+shkreli+fraud">martin shkreli fraud</a>, <a href="/tag/Daraprim">Daraprim</a>, <a href="/tag/rap">rap</a>, <a href="/tag/rza">rza</a>, <a href="/tag/big+pharma">big pharma</a>, <a href="/tag/stocks">stocks</a>, <a href="/tag/prescription+drugs">prescription drugs</a>, <a href="/tag/price+gouging">price gouging</a>, <a href="/tag/interview">interview</a>, <a href="/tag/pharmaceuticals">pharmaceuticals</a></p>
</section> <div class="vmp-ad ad-sidebar" data-ref="video_sidebar"></div>               </div>
            </div>

                            <section class="list-widget latest-videos-widget series-episodes carousel" data-ids-not-in="197464" data-series-id="331">
                    <header class="widget-header">
                        <h2>More from this show</h2>

                        <nav class="controls">
                            <div class="control left-arrow"> Previous</div>

                            <div class="control right-arrow">More</div>

                            <div class="loading-container">
                                <div class="loading-anim"></div>
                            </div>
                        </nav>
                    </header>

                    <div class="latest-videos-wrapper items-wrapper" data-total-videos="77">

<script type="text/template" id="carousel-list-item-template">
    <% if(thumb_html){ %>
        <div class="image-container">
            <a href="<%= url %>">
                <%= thumb_html %>
            </a>
        </div>
    <% } %>

    <div class="item-information">
        <a href="<%= url %>">
            <h2 class="item-title">
                <%= info.title %>
            </h2>
        </a>
    </div>
</script><section class="items-container" id=""><article class="item" data-model-id="199072">
            <div class="image-container">
            <a href="/video/usa-freedom-kids-video-001">
                <img src="https://vice-images.vice.com/images/articles/crops/2016/02/08/usa-freedom-kids-video-001-1454971540-crop_mobile_400.jpg?resize=*:*&amp;output-quality=75" alt="Watch Our Interview with the Patriotic Preteen Girls Singing Donald Trump&#039;s Praises" />           </a>
        </div>

    <div class="item-information">
        <a href="/video/usa-freedom-kids-video-001">
            <h2 class="item-title">
                Watch Our Interview with the Patriotic Preteen Girls Singing Donald Trump's Praises     </h2>
        </a>
    </div>
</article><!-- --><article class="item" data-model-id="191672">
            <div class="image-container">
            <a href="/video/rob-fords-sobriety-coach-inside-the-manic-life-work-of-bob-marier">
                <img src="https://vice-images.vice.com/images/articles/crops/2015/12/21/rob-fords-sobriety-coach-inside-the-manic-life-work-of-bob-marier-1450721908-crop_mobile_400.jpg?resize=*:*&amp;output-quality=75" alt="Inside the Manic Life and Work of Bob Marier, Rob Ford&#039;s Sobriety Coach" />            </a>
        </div>

    <div class="item-information">
        <a href="/video/rob-fords-sobriety-coach-inside-the-manic-life-work-of-bob-marier">
            <h2 class="item-title">
                Inside the Manic Life and Work of Bob Marier, Rob Ford's Sobriety Coach         </h2>
        </a>
    </div>
</article><!-- --><article class="item" data-model-id="180204">
            <div class="image-container">
            <a href="/video/matty-matheson-on-stephen-harpers-trail">
                <img src="https://vice-images.vice.com/images/articles/crops/2015/10/16/matty-matheson-on-stephen-harpers-trail-1445009419-crop_mobile_400.jpg?resize=*:*&amp;output-quality=75" alt="We Turned Chef Matty Matheson into a Canadian Campaign Trail Reporter" />         </a>
        </div>

    <div class="item-information">
        <a href="/video/matty-matheson-on-stephen-harpers-trail">
            <h2 class="item-title">
                We Turned Chef Matty Matheson into a Canadian Campaign Trail Reporter           </h2>
        </a>
    </div>
</article><!-- --><article class="item" data-model-id="179042">
            <div class="image-container">
            <a href="/video/being-ida-616">
                <img src="https://vice-images.vice.com/images/articles/crops/2015/10/09/being-ida-616-1444404061-crop_mobile_400.jpg?resize=*:*&amp;output-quality=75" alt="Being Ida " />          </a>
        </div>

    <div class="item-information">
        <a href="/video/being-ida-616">
            <h2 class="item-title">
                Being Ida           </h2>
        </a>
    </div>
</article><!-- --><article class="item" data-model-id="176908">
            <div class="image-container">
            <a href="/video/how-pablo-escobars-legacy-of-violence-drives-todays-cartel-wars-part-1-915">
                <img src="https://vice-images.vice.com/images/articles/crops/2015/09/28/how-pablo-escobars-legacy-of-violence-drives-todays-cartel-wars-part-1-915-1443473755-crop_mobile_400.jpg?resize=*:*&amp;output-quality=75" alt="How Pablo Escobar&#039;s Legacy of Violence Drives Today&#039;s Cartel Wars - Part 1" />           </a>
        </div>

    <div class="item-information">
        <a href="/video/how-pablo-escobars-legacy-of-violence-drives-todays-cartel-wars-part-1-915">
            <h2 class="item-title">
                How Pablo Escobar's Legacy of Violence Drives Today's Cartel Wars - Part 1          </h2>
        </a>
    </div>
</article><!-- --><article class="item" data-model-id="176151">
            <div class="image-container">
            <a href="/video/how-pablo-escobars-legacy-of-violence-drives-todays-cartel-wars-trailer-981">
                <img src="https://vice-images.vice.com/images/articles/crops/2015/09/23/pablo-escobars-lasting-narco-legacy-9185-1443018521-crop_mobile_400.jpg?resize=*:*&amp;output-quality=75" alt="How Pablo Escobar&#039;s Legacy of Violence Drives Today&#039;s Cartel Wars - Trailer" />            </a>
        </div>

    <div class="item-information">
        <a href="/video/how-pablo-escobars-legacy-of-violence-drives-todays-cartel-wars-trailer-981">
            <h2 class="item-title">
                How Pablo Escobar's Legacy of Violence Drives Today's Cartel Wars - Trailer         </h2>
        </a>
    </div>
</article><!-- --></section>
                    </div>
                </section>

                            <div class="video-ad-container">
                    <div class="vmp-ad ad-banner" data-ref="banner"></div>              </div>

                            <section id="comments" class="comments-wrapper">
                    <div class="comments-inner">
                        <header class="widget-header">
                            <h2>Comments</h2>
                        </header>

                        <section class="comment-widget" id=""><div class="fb-comments" data-href="http://www.vice.com/video/drinking-wine-and-playing-chess-at-martin-shkrelis-midtown-apartment" data-num-posts="5" data-width="100%"></div></section>                 </div>
                </section>
                    </div>
    </div>
</div>
        </div>

        <footer class="site-footer">
    <ul>
        <li>&copy;2016 VICE Media LLC </li>
    </ul>
</footer>   </section>

    <script type="text/javascript">
/*<![CDATA[*/
window.vmp_ad_config = {
 ad_slots : {},
 ad_targetting_sizes : {},
 config : {
  adunit : "vice.com/vice-special",
  targeting : {
   topic : "stuff",
   aid : "drinking-wine-and-playing-chess-at-martin-shkrelis-midtown-apartment",
   atype : "video",
   AC : "yes",
   auth : "allie-conti",
   keywords : "martin-shkreli,vice-special,allie-conti,finance",
   country : "en_us",
   taxonomy : "/technology and computing/internet technology/social network,/health and fitness/disease/aids and hiv,/real estate/apartments"
  }
 }
};
/*]]>*/
</script><script type="application/ld+json">

{ "@context" : "http://schema.org",

  "@type" : "Organization",

  "name" : "Vice",

  "url" : "http://www.vice.com",

  "sameAs" : [ "https://www.facebook.com/VICE",

  "https://www.youtube.com/user/vice",

  "https://www.instagram.com/vice/",

  "https://www.pinterest.com/vicemag/",

  "https://twitter.com/vice",

  "https://plus.google.com/b/106872472930730227853/+VICE"] 

}

</script>
<script type="text/javascript">
/*<![CDATA[*/
//Sailthru Horizon
(function(){function loadHorizon(){var s = document.createElement('script');s.type = 'text/javascript';s.async = true;s.src = location.protocol + '//ak.sail-horizon.com/horizon/v1.js';var x = document.getElementsByTagName('script')[0];x.parentNode.insertBefore(s, x);}loadHorizon();var oldOnLoad = window.onload;window.onload = function(){if(typeof oldOnLoad === 'function'){oldOnLoad();}
Sailthru.setup({domain: 'horizon.vice.com'
});
};
})();
var SYSTEM_PREFIX = 'vmp', SITE_PREFIX = 'vice', SITE_LOCALE ='en_us';
//Socials
var SITE_SOCIALS = {'social_google_plus' : 'https://plus.google.com/+VICE',
'social_facebook' : 'Vice',
'social_tumblr' : 'https://www.tumblr.com/follow/vicemag',
'social_youtube' : 'vice',
'social_twitter' : 'vice',
'social_instagram' : 'vice'};

//Total analytics accounts
var TOTAL_ANALYTICS_ACCOUNTS = 1;

//Begin Chartbeat Code
var _sf_async_config={};
//CONFIGURATION START
_sf_async_config['uid'] = 8233;
_sf_async_config['domain'] = 'vice.com';
_sf_async_config['videoType'] = 'ooyala';
_sf_async_config['sections'] = 'en_us, stuff';
_sf_async_config['authors'] = 'VICE Special';
_sf_async_config['type'] = 'video';

//CONFIGURATION END
(function(){
function loadChartbeat(){
window._sf_endpt=(new Date()).getTime();
var e = document.createElement('script');
e.setAttribute('language', 'javascript');
e.setAttribute('type', 'text/javascript');
e.setAttribute('src', (('https:' == document.location.protocol) ? 'https://a248.e.akamai.net/chartbeat.download.akamai.com/102508/' : 'http://static.chartbeat.com/') + 'js/chartbeat_pub.js');
document.body.appendChild(e);
e = document.createElement('script'); 
e.setAttribute('language', 'javascript');
e.setAttribute('type', 'text/javascript');
e.setAttribute('src', '//static.chartbeat.com/js/chartbeat_video.js');
document.body.appendChild(e);
}
var oldonload = window.onload;
window.onload = (typeof window.onload != 'function') ? loadChartbeat : function(){ oldonload(); loadChartbeat(); };
})();

</script><!-- Quantcast Tag -->
<script type="text/javascript">
var _qevents = _qevents || [];

(function() {
var elem = document.createElement('script');
elem.src = (document.location.protocol == "https:" ? "https://secure" : "http://edge") + ".quantserve.com/quant.js";
elem.async = true;
elem.type = "text/javascript";
var scpt = document.getElementsByTagName('script')[0];
scpt.parentNode.insertBefore(elem, scpt);
})();

_qevents.push({
qacct:"p-6EzWtvBV9sFU3"
});
</script>

<noscript>
<div style="display:none;">
<img src="//pixel.quantserve.com/pixel/p-6EzWtvBV9sFU3.gif" border="0" height="1" width="1" alt="Quantcast"/>
</div>
</noscript>
<!-- End Quantcast tag -->

<!-- BEGIN iOS app smart banner -->
<meta name="apple-itunes-app" content="app-id=591496838">
<!-- END iOS app smart banner -->

<!-- BEGIN Krux Control Tag for "Vice.com" -->

<!-- Source: /snippet/controltag?confid=JLmLD3_1&site=VICE.com&edit=1 -->
<script class="kxct" data-id="JLmLD3_1" data-timing="async" data-version="1.9" type="text/javascript">
  window.Krux||((Krux=function(){Krux.q.push(arguments)}).q=[]);
  (function(){
    var k=document.createElement('script');k.type='text/javascript';k.async=true;
    var m,src=(m=location.href.match(/\bkxsrc=([^&]+)/))&&decodeURIComponent(m[1]);
    k.src = /^https?:\/\/([a-z0-9_\-\.]+\.)?krxd\.net(:\d{1,5})?\//i.test(src) ? src : src === "disable" ? "" :
      (location.protocol==="https:"?"https:":"http:")+"//cdn.krxd.net/controltag?confid=JLmLD3_1"
  ;
    var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(k,s);
  }());

</script>
<script>
    window.Krux||((Krux=function(){Krux.q.push(arguments);}).q=[]);
    (function(){
     function retrieve(n){
    var m, k='kx'+n;
    if(window.localStorage){
       return window.localStorage[k] || "";
    }else if(navigator.cookieEnabled){
       m = document.cookie.match(k+'=([^;]*)');
       return (m && unescape(m[1])) || "";
    }else{
       return '';
    }
    }
     Krux.user = retrieve('user');
     Krux.segments = retrieve('segs') && retrieve('segs').split(',') || [];
    })();
</script>
<!-- END Krux Controltag -->

<!-- Start Comscore -->
    <script type="text/javascript">var _sf_startpt=(new Date()).getTime()</script>
    <script>
        var _comscore = _comscore || [];
        _comscore.push({ c1: "2", c2: "8568956" });
        (function() {
        var s = document.createElement("script"), el = document.getElementsByTagName("script")[0]; s.async = true;
        s.src = (document.location.protocol == "https:" ? "https://sb" : "http://b") + ".scorecardresearch.com/beacon.js";
                el.parentNode.insertBefore(s, el);
        })();
    </script>
    <noscript>
        <img src="http://b.scorecardresearch.com/p?c1=2&c2=8568956&cv=2.0&cj=1" />
    </noscript>
<!-- End Comscore -->

<!-- Start Alexa Certify Javascript -->
    <script type="text/javascript">
    _atrk_opts = { atrk_acct:"x5HVh1aUXR00Gi", domain:"vice.com",dynamic: true};
    (function() { var as = document.createElement('script'); as.type = 'text/javascript'; as.async = true; as.src = "https://d31qbv1cthcecs.cloudfront.net/atrk.js"; var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(as, s); })();
    </script>
    <noscript><img src="https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=x5HVh1aUXR00Gi" style="display:none" height="1" width="1" alt="" /></noscript>
<!-- End Alexa Certify Javascript -->

<!-- Start Compete XL -->
    <script type="text/javascript">
        __compete_code = 'c79a03b00361f17867f62f423817279a';
        /* Set control variables below this line. */
    </script>
    <script type="text/javascript" src="//c.compete.com/bootstrap/s/c79a03b00361f17867f62f423817279a/vice-com/bootstrap.js" async></script>
    <noscript>
       <img width="1" height="1" src="https://ssl-vice-com-c79a03.c-col.com"/>
    </noscript>
<!-- End Compete XL -->

<!-- Google Tag Manager -->
    <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-5FBQQG"
    height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
    <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
    '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document,'script','dataLayer','GTM-5FBQQG');</script>
<!-- End Google Tag Manager -->

<!--Crazy Egg-->
<script type="text/javascript">
setTimeout(function(){var a=document.createElement("script");
var b=document.getElementsByTagName("script")[0];
a.src=document.location.protocol+"//script.crazyegg.com/pages/scripts/0013/1363.js?"+Math.floor(new Date().getTime()/3600000);
a.async=true;a.type="text/javascript";b.parentNode.insertBefore(a,b)}, 1);
</script> 
<!--End Crazy Egg-->

<!-- START Nielsen Online SiteCensus V6.0 -->
<!-- COPYRIGHT 2012 Nielsen Online -->
<script type="text/javascript" src="//secure-au.imrworldwide.com/v60.js">
</script>
<script type="text/javascript">
 var pvar = { cid: "au-vice", content: "0", server: "secure-au" };
 var trac = nol_t(pvar);
 trac.record().post();
</script>
<noscript>
 <div>
 <img src="//secure-au.imrworldwide.com/cgi-bin/m?ci=au-vice&cg=0&cc=1&ts=noscript"
 width="1" height="1" alt="" />
 </div>
</noscript>
<!-- END Nielsen Online SiteCensus V6.0 -->

<!--Austrian OEWA Tracker-->
<script type="text/javascript" src="https://vice-ads-cdn.vice.com/AT_CH/OEWA/oewa_pixel.js" async="async"></script>
<!--End Austrian OEWA Tracker--><script>
//Google Custom Search Engine
var GOOGLE_CUSTOM_SEARCH_ENGINE_ID = '012535507476705294612:8pcfhmf5dsu';

//Available locales
var AVAILABLE_LOCALES = [
{"link":"\/en_au","label":"Australia \/ NZ"},
{"link":"\/be","label":"Belgium"},
{"link":"\/pt_br","label":"Brasil"},
{"link":"\/en_ca","label":"Canada"},
{"link":"\/cs","label":"\u010cesko\/Slovensko"},
{"link":"http:\/\/www.vice.cn","label":"\u4e2d\u56fd"},
{"link":"\/es_co","label":"Colombia"},
{"link":"\/en_dk","label":"Denmark"},
{"link":"\/de","label":"Deutschland"},
{"link":"\/es","label":"Espa\u00f1a"},
{"link":"\/fr","label":"France"},
{"link":"\/gr","label":"Greece"},
{"link":"\/it","label":"Italia"},
{"link":"http:\/\/jp.vice.com","label":"Japan"},
{"link":"\/es_mx","label":"M\u00e9xico"},
{"link":"\/nl","label":"Nederland"},
{"link":"\/en_se","label":"Sweden"},
{"link":"\/alps","label":"\u00d6sterreich\/Schweiz"},
{"link":"\/pl","label":"Polska"},
{"link":"\/pt","label":"Portugal"},
{"link":"\/ro","label":"Romania"},
{"link":"\/ru","label":"\u0420\u043e\u0441\u0441\u0438\u044f"},
{"link":"\/rs","label":"Srbija"},
{"link":"\/en_uk","label":"United Kingdom"},
{"link":"\/en_us","label":"United States"}
];
var CURRENT_LOCALE = 'en_us';
var MOMENT_LOCALE = 'en';
var CURRENT_LANGUAGE = 'en';

/*]]>*/
</script>
<script type="text/javascript" src="/assets/js/vmp/lib/require.min.js?v20160203163202" id="vmp-require-js" data-main="/assets/js/vmp/system/require.config.js?v20160203163202" data-config-extension="/assets/js/vice/configs/vice.config.js?v20160203163202" data-main-script="/assets/js/vice/videos/single.js" data-asset-version="v20160203163202" async="async"></script>
</body>
* Connection #0 to host www.vice.com left intact
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):
</html>aliasd@melbourne:~$ 
yan12125 commented 8 years ago

Confirmed www.vice.com requires SNI (Server Name Indication). To have SNI support in Python, you need both:

To check whether SNI is available in current Python:

python -c "import ssl; print(ssl.HAS_SNI if hasattr(ssl, 'HAS_SNI') else False)"

To check whether a website requires SNI or not:

echo | openssl s_client -connect www.vice.com:443
echo | openssl s_client -connect www.vice.com:443 -servername www.vice.com

If the first command fails while the second is OK, this site require SNI.

For this video, as www.vice.com supports non-HTTPS URLs, so you can download it with:

youtube-dl http://www.vice.com/video/drinking-wine-and-playing-chess-at-martin-shkrelis-midtown-apartment

Or upgrade/rebuild your Python. There's nothing youtube-dl can do as SNI is a C-level API and we can't implement it in pure Python.