2 a292228108 a292228108 于 2016.03.01 11:24 提问

curl采集百度搜索结果没有图片 5C
<?php
$url = "http://www.baidu.com/s?wd=csdn";
// 构造包头,模拟浏览器请求
$header = array (
        "Host:www.baidu.com",
        "Content-Type:application/x-www-form-urlencoded",//post请求
        "Connection: keep-alive",
        'Referer:http://www.baidu.com',
        'User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; BIDUBrowser 2.6)'
);
$ch = curl_init ();
curl_setopt ( $ch, CURLOPT_URL, $url );
curl_setopt ( $ch, CURLOPT_HTTPHEADER, $header );
curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, 1 );
// 执行
$content = curl_exec ( $ch );
if ($content == FALSE) {
    echo "error:" . curl_error ( $ch );
}
// 关闭
curl_close ( $ch );

//输出结果
echo $content;
?>

图片说明

3个回答

caozhy
caozhy   Ds   Rxr 2016.03.01 11:56
 <div class="c-row c-gap-top">

    <div class="c-span4  opr-recommends-merge-item " data-click="{'rsv_re_ename':'技术宅社区','rsv_re_uri':'c8f920c6eb614cfa9f0e6618264bce4a'}">
                                                    <div class="opr-recommends-merge-p">
            <a target="_blank" href="/s?rsv_idx=1&amp;wd=%E6%8A%80%E6%9C%AF%E5%AE%85%E7%A4%BE%E5%8C%BA&amp;usm=1&amp;ie=utf-8&amp;rsv_cq=csdn&amp;rsv_dl=0_right_recommends_merge_21102&amp;euri=c8f920c6eb614cfa9f0e6618264bce4a"><img data-b64il-id="719582840_3874511144_58" data-src="https://ss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=719582840,3874511144&amp;fm=58" class="c-img c-img4 opr-recommends-merge-img" src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAAQABAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEPERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/2wBDAQUFBQcGBw4ICA4eFBEUHh4eHh4eHh4eHh4eHh4eHh4eHh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dt0gQrpbpFuuMVmXDktqafYeQFIcQoaKVA+CCK9NKCJx/S9xHBnNXGz2m42q4xnkvxJce4uqXGdSoKQtKXCpBIIHhSSP3Bql4lh9pxuws2mN78pKFuuuSJKwp1511xTri1FIA2pa1HQAA3oACshpQKUpQKUpQKUpQKUpQKUpQf/Z"></a>
            <a class="opr-recommends-merge-mask" target="_blank" href="/s?rsv_idx=1&amp;wd=%E6%8A%80%E6%9C%AF%E5%AE%85%E7%A4%BE%E5%8C%BA&amp;usm=1&amp;ie=utf-8&amp;rsv_cq=csdn&amp;rsv_dl=0_right_recommends_merge_21102&amp;euri=c8f920c6eb614cfa9f0e6618264bce4a"></a>                    </div>
        <div class="c-gap-top-small"><a target="_blank" title="技术宅社区" href="/s?rsv_idx=1&amp;wd=%E6%8A%80%E6%9C%AF%E5%AE%85%E7%A4%BE%E5%8C%BA&amp;usm=1&amp;ie=utf-8&amp;rsv_cq=csdn&amp;rsv_dl=0_right_recommends_merge_21102&amp;euri=c8f920c6eb614cfa9f0e6618264bce4a">技术宅社区</a></div>
                        <div>
            <img src="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAEoAAAAoCAYAAABZ7GwgAAADzUlEQVR42u2ZO3rbOhCF/9wvvdC5FDuVKlHcntiBuAPuKViBwBUIXIFRslQlsHRlcAW8BfWgJFAPx3RyE04lGy/i4MyZweBb27Ytk921fyYIJqAmoCagJqAmoP4a+/5VCwVncC8ZKhluL6rm9iTzlDw2gbfo7SLedloBZyyoDCmOA7G6hDTn5tDRgPIW8ybJjl8U2HrBQg4PETIjlx88hLfAfHFnp95RCUku9sCW9amt1OjD79mSVSYRHwMq4EzBvQM/LpIo5FZj3KoDyzuqpgatIyS5f5qRXWN1SX32v95mT7OT5oqEgHOQZknvU1e9g+zNa97iS7aj2Xv7ut60u/a9fV2v29f3ofaP2K7d/Lg39tTn/XXdbnaHNX/sfz9nI2qUQGYKvKU8UD44OpmQ4Cw+UUjAW01ZPzjtPCVXt7WtYws9t2+oq45xHYOHPWSQ4e2ItttcMGm3aX+sX9v324Pa9XHQrt1E+5+zZd1b5PT3Bet2mw8xaXxGBYdDkolz0Z0B2wBX8tDrM0Zw6cRbo+cpKeUwg39OzD/wbc6TSHkGnPUJKnvBWc+QgofQIBbiqbWaqkBXZ3s9D0SuvhDvnLz3XQc5EL8iPXBC9djksYUnWWUIQAqDceI66gSHC8vhKHjc1EtEk8RVpD5pZY70Fq3rfSSUvJmCIHOUeAyw74/t+xmx/ZdlAHlAyVt0GViuTomekBnSarTtJZC9foMnGwKNWJy1C5mRPZJKzFPyXB1TnSD3on3EU5IphzEuCta3MQt33mpK0sGMOThDEWSnGSGmDdfRqYtKHqu3LHJFEmNdUdHc0JvLfnFGfiFQ06V4AmqyCagJqAmov7dwV1RiX/aIt1vUVZiOF/weLPswO8vffnuggjMUPmGVBgrjormNkIrEOLyMA8lgremPcL2AM7oDaV/QWyWeQlv8RWKqdUHV1JQXbffnN7gQSSaN4zOv1+MlnIcbe6TOfaghXdV+9vctmXjKAb861ZMcL9m+emkKfLLProPDFAH5yWwbBajD3XA2m9E08Q0f245AXtzB7mrUAajL++g4LjmKRiWqV8Z4WMcsFTNmzhGS2yWP6JqLOdQ1zMTTY3+xmMceAAbE2NuunDtbomSgsP7O09NAsMgVOEOhw6ezatyoN3h771znCOkW0tUSZ4FEkSdPHsY8JT+8sMiMFYZCm09LDb40j7rtqmpfOn6atCzyHHWVamTkMhDC/4VRTUXRr9Feut5PI5zccC+BEH+Y6123XWbdvcfNeUquBFBTRh5U4+nE75xHTZfiCajJJqAmoL7M/gOyXSrJHwsmewAAAABJRU5ErkJggg==" class="opr-recommends-merge-imgtext" data-nolog="1">        </div>
                            </div>   





    <div class="c-span4  opr-recommends-merge-item " data-click="{'rsv_re_ename':'开源社区','rsv_re_uri':'21bf364a763942898f0a17f576a9039f'}">
                                                    <div class="opr-recommends-merge-p">
            <a target="_blank" href="/s?rsv_idx=1&amp;wd=%E5%BC%80%E6%BA%90%E7%A4%BE%E5%8C%BA&amp;usm=1&amp;ie=utf-8&amp;rsv_cq=csdn&amp;rsv_dl=0_right_recommends_merge_21102&amp;euri=21bf364a763942898f0a17f576a9039f"><img data-b64il-id="166169957_992211865_58" data-src="https://ss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=166169957,992211865&amp;fm=58" class="c-img c-img4 opr-recommends-merge-img" src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAAQABAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEPERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/2wBDAQUFBQcGBw4ICA4eFBEUHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh7/wAARCABLAEsDASIAAhEBAxEB/8QAHAAAAgMBAQEBAAAAAAAAAAAAAAcEBQgGAgMB/8QAORAAAQMDAgMGBAQDCQAAAAAAAQIDBAAFEQYSEyExBxQyQVFhInGBoRVCUpEIY3IjNDVDU2KCg8H/xAAaAQABBQEAAAAAAAAAAAAAAAAAAQIDBAUG/8QAJREAAgICAQMEAwEAAAAAAAAAAAECAwQRIQUSMSIyQVETFJGB/9oADAMBAAIRAxEAPwDZdFFFABXh95phpTrzqGm09VLUAB9TXK9oOs42moxZa4Ts9bZcCXFYbZQP8xw+Sfbqaz/qDWc++Sy89JMhOfhelJyP+tnwpHurJ9qjlZrwU8nOrx+HyzSLmr9LtucNeoLYFeneUn/2rOBPgz2+JBmR5SP1MuBY+1ZKF1kY/wAVlj2Tw0j9gnFfSHqCbAkpksvhxaTkLaIYfHyWjAPyUKYrX9FKPV479UTXVFK7sw7S27twYN1fS4pxXDZllOwlf+m6n8q/QjkaaNTRkpLaNWq2Nse6L4CiiilJAqNdZrNutkmfIOGo7SnV/IDNSa5XtZWU6EnJHRxTTavkpxIP2pG9LY2T7YtmZe1HUUu43hxh9wl11QkTOfVZGUN/0oTjl61ztrDktayonanzzX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u0wJslu33k3y1MXSU5LMvdc3lS5aUpd4jKmSNiSkAEDlt2jHWr/RMQWdPZvc4c6eZF6aLdw4stxxMhJjFYylRIG0pGMAYFJpDZQjL3LYzV6ct5PJCkj0CjiqS/wDZvYrxcok51chhbDaml8EhJdQTkJKsZGDnp6mqHVzaYV3vV6uDce8RI77ai7FuimJttSEo/s0o8J/UACCrd0NR3DGVbH9Qd+fGo06l7sg95UFhPfA2GOHnG0s/lx0+L3p8pymtSeyP9epeIr+DOs1rt9ngIg2yI3Fjo6IQOp9SepPua9O22A6panYray4srXlOdyijYSf+PL5UtIF2bGitLQzcszhfmWHWy+eLlMlW9ChnPIdQfLFQrPBjSYelnrpOmuMXS4S48suzHAhaWy+plnxABO5I5dVEYJPSmkukN2LFjRQoR2UtBRBISMZwkJH2AH0r7UqLjEt7upolgt0qLOs7UOQ+hiXdnUtJeDwDgC07iS2nkEnwBWa7vQiJKNI29Mq5MXNzhnEpl0uJcRuOwhZ5qwnaNx64zQKTnLNaXLmm6OWuEuejwyVMJLo+S8Zqi0BpRuwwFGfGgO3Dvcl1EltsFaUOOqWE7iARyVzFdXRQBXt2SzNznp7dpgIlvgpdfTHQHHAeoUrGTn3r7ot8BCYyUwoyUxP7sA0kBnlj4OXw8uXLyqTRQBXyrJZpVwRcJNpgvTEYKX3I6VOJx0wojPLyr0bPaTdBdDbIRnjpJLCeL0x4sZ6cqnUUAQ/wm198XM/DYfeVlKlvcBO9RScpJVjJwQCPSh+12x+3m3vW6I5DJyY6mUlvOc+HGOvP51MooArX9P2J+CzAestuciMnLTC4yC2g/wC1OMD6VYNNoaaS00hKEIASlKRgADoAK9UUAf/Z"></a>
            <a class="opr-recommends-merge-mask" target="_blank" href="/s?rsv_idx=1&amp;wd=%E5%BC%80%E6%BA%90%E7%A4%BE%E5%8C%BA&amp;usm=1&amp;ie=utf-8&amp;rsv_cq=csdn&amp;rsv_dl=0_right_recommends_merge_21102&amp;euri=21bf364a763942898f0a17f576a9039f"></a>                    </div>
        <div class="c-gap-top-small"><a target="_blank" title="开源社区" href="/s?rsv_idx=1&amp;wd=%E5%BC%80%E6%BA%90%E7%A4%BE%E5%8C%BA&amp;usm=1&amp;ie=utf-8&amp;rsv_cq=csdn&amp;rsv_dl=0_right_recommends_merge_21102&amp;euri=21bf364a763942898f0a17f576a9039f">开源社区</a></div>
                        <div>
            <img src="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAEoAAAAoCAYAAABZ7GwgAAAEiElEQVR42u2ZO3ajShCGv5njnM4UqjNChb0DsQPYAXuaXoFgBW6twB0SErkJFbm0Am4AEgg9LI1nPMe+VKZW9evvqr8e/GjbtmWWd+XnDMEM1AzUDNQM1AzU/0ae7tIKDrtt7lJdrnMSfZhmqePhdzdWsDMZRo0miacoAzrNMPLOXtGKNDOowzwHSWZQCL7wLLIEJnuILyir/fiULJcNTXNj7am0D8rr86Z9eTsZaZ83L+3bRe239uV5/N8N3beXdvNr0768PLe/nl9Hw5t29HMyZdNujod5a182z+3reK23c/1ra7Xta/t8/c/26W+YaXCWsVFUtgKWrFZCs9/T2Or8FZUhyw0ERyVTK7DYTplVerCUgK8UJr/w/sqQpVD4gDmas1CLxpiRFR+tEQg1xMkHXe9B0UlOHhzFzpAN9k9RNkSrtBsTT+EXZIkmOEvJmnzsozDo9hf1hRu9Rk0TKcyADgsl1K5g2wxuVvh+jeAJyoz0AbU4ulmoBWU+xFGCL0pOXLyxVBOto5Vc8XOpA2q1Gg0IqPgI7NpZrFuTx4PKviqxJxtFdCsE3LaBSJ3zz3JNnuvzO/iG/b7BVv0DLIb9QdiJYqE+BJTCZPnxJc7JOOCKHeYCOMNFO5dJVMAVNWIM7AQ1OplOcvKDC7xjUeI9slwSCSiTkZuBtN0lKg6eat+7rTiK3ZWHsHay52+7nrCTOzV3ctw0uILubJpYeWpZIJUizk95rY5zEiBS6qZFCZrEgHOTJ401eIEJWKGG5fKMH8jzyZl9gb9iVg8DJXtFrO7TVhc21bFiW26JVin65AEilILgG1ScoHRvKVPSBTAGxF/aENXUBDT6BJM+ZTiO1Dhb0UxSg5Xaw+IPkLl4T7M0JHcAWocDBZz6v1w0SUHQGBXwTdSTasDZmjjtJtbOIpOc7EIYIV5u8V7Qh4DRg3wqMUluLkTrCvloZi6+oAya9PZJB05QpucxQfaDe5VBk+YpOpQUXoYIphbgPU2kiRUE51FpcrSMOElRvsDLexF3japKXOgCxv4Y2fZUpb2RzN6mlaeHQLqWtZ5FGGHVh/1t00Wi2Fm2rMmz7uomy1n0kS5VQqQUIrBKDPiCOs4wdYGt9rBco1CYRE9yo8tWleRrnO1yr+U6GfhtQuZnVUe0Ir2y9I+5wzkXxTNQM1AzUDNQc+Pub0lXjyVn9VRXPmSThPJCQX65mzdqv3wToJRJ0IUnmAR914wl6/xe3W/iesFZrC2p9g1b6wgP1Ji+uJCVi6coPPIJZ/83CWdfgxkd2F7xq673PvTBde+GQY8af6VgPsna/gFQ3YXFnBa41znqANRglV3F8bku+fPzjclREXXNt9+Yr+O+sRSpO+rOrwpUcH3bVpMYoXThQZALrFekeU6qA+VDPPeVyLyGdboi6vohZx8TbszEWUsphrzvYCiTka6ErX2/9fLl0gOdJCAe/zDCEOf5WcOw65cLIt/N9X4bYX2DtBVKfTOLuhT9TrODw4dOus9OiQIatta+n5au32sTf8U8ai6KZ6BmoGYIZqD+qPwHbGxfPOBuBg0AAAAASUVORK5CYII=" class="opr-recommends-merge-imgtext" data-nolog="1">        </div>
                            </div>   





    <div class="c-span4  c-span-last-s opr-recommends-merge-item " data-click="{'rsv_re_ename':'iteye','rsv_re_uri':'383f86daaa774c26811bc2e310748e94'}">
                                                    <div class="opr-recommends-merge-p">
            <a target="_blank" href="/s?rsv_idx=1&amp;wd=iteye&amp;usm=1&amp;ie=utf-8&amp;rsv_cq=csdn&amp;rsv_dl=0_right_recommends_merge_21102&amp;euri=383f86daaa774c26811bc2e310748e94"><img data-b64il-id="928957941_1150506815_58" data-src="https://ss0.baidu.com/6ONWsjip0QIZ8tyhnq/it/u=928957941,1150506815&amp;fm=58" class="c-img c-img4 opr-recommends-merge-img" src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAAQABAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEPERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/2wBDAQUFBQcGBw4ICA4eFBEUHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh7/wAARCABLAEsDASIAAhEBAxEB/8QAGwABAAIDAQEAAAAAAAAAAAAAAAYIAgUHBAP/xAA5EAABAgUCBAMFAw0AAAAAAAABAgMABAUGERIhBxMxUQgUMhUiQWGBF1KxGCMzNEJWYmNyk6HS8f/EABkBAQEBAQEBAAAAAAAAAAAAAAAEAwECBf/EACYRAAICAQMCBgMAAAAAAAAAAAABAgMRBBIhEzFCUWFxobEygZH/2gAMAwEAAhEDEQA/ALlwhCAEIQgBCEIAQhCAEIQgBCOcXXIXdMXc1VESqnpOTfT5NpDoKUpGkFZSTjWoqV7ygQhCTgEkRs5PipYE3S6jU5e45dyUpmjzjoacw1rVpTn3cnJGNo8Uyna5JRfBvqKoURg96e5efYmkI559tvC397pX+y7/AKRLJC5qBO201crFVlvZDqC4mbcVy29OSMkqxjcHrG8qpx/KLRLG2EuzRt4RE6LxKsOs1EU6mXXS5iaUdKGg8AVnsnONX0j6VPiDZ1MudFs1CvS8rVnFoQiWdStJJX6d8Y3z1zHOlPOMMdSGM5RKIRpbuuu3bSkmpy46sxTmHnOU2p3J1qxnAABPQRgbwtlNssXK7WpRikPp1MzT6+UhY+WrBPTbbeObJNZwd3xzjJvYRGrZv2zblmjKUK5KdPTA35LbuFkdwk4J+kSWEouLw1g7GSkspmD/AOhX/Sfwiqnhat+l3Sxe9CrLKn5GZEtzEJcKCdLjihuNxuBFq3t2l4+6fwiu3g/pNVptXupVRpk7JJdDPLMxLqbC8LczjUBnqIr08ttFjT54+yS+O66vPr9EGdsS2k+JtNkCTd9hl0J5HPXqx5fX686vVv1j1cZJF6ocTKFweoLqpGi08sy8u0txS0hx384pxWTlRAVgZ7HvEqepFW/LFTU/Zc95HnA+Z8uvlfqmPXjHXbrGw8R/DG4p+5JW/wCzEOvVFhLfmGWDh4Kb9Drf3iBsR12HXeLlcupDdLw/PmROl9Oe1eL4OR3HZNAfr9atazmbimq5QkLW5zwhxM5y1JDmhCAFNkaspznIHwOIl902ldF3cEJW46zTahL3PbK1sOGYaUh6bk04UFHO5UjOQf4VfExJeDl/8RqnxCl5W4bMKWJhssTs6zSFMOJUPS44s7EDGCPnsNosDU0lVOmUhOolpYxjOfdMZX6qyqUYtcrnvn3/AKa06aFkZNdn6Y9inltu3Jx1v2g0utOkyFKlEibcRnHLTjW4f5jh0p/5HquKRm+KnHt601TipCkUpbstLNoTkS8uwMK0I6a1Ef5HwGInXg1pFTpiLnNSpk5JFxUty/MS6m9QAczjUBn4RrOMnDy9LV4kucRbAZmJlL7pmHESyOY4w6oYWCj9ttW52z1OfgY26sVe64tLC48ssyVUnSpvLy+fY5ebclKwJqqcM5K5zM0eabQ407pdewoqCHkKbAKSCg5SRtkHPWLjcNKnV6tYdHn6/JPydVclwJtp1ooUHEkpJKT0zjP1jmfh9vS9K5cdRlLis8U6Teb5qZqXpipZAeT6g4VeoqB674I+cdwiPXWyk9kl29clejqSW+L7/oQhCPnlwhCEAIQhACEIQAhCEAMDtDA7QhADA7QwO0IQAwO0MDtCEAMDtDA7QhADA7QwO0IQB//Z"></a>
            <a class="opr-recommends-merge-mask" target="_blank" href="/s?rsv_idx=1&amp;wd=iteye&amp;usm=1&amp;ie=utf-8&amp;rsv_cq=csdn&amp;rsv_dl=0_right_recommends_merge_21102&amp;euri=383f86daaa774c26811bc2e310748e94"></a>                    </div>
        <div class="c-gap-top-small"><a target="_blank" title="iteye" href="/s?rsv_idx=1&amp;wd=iteye&amp;usm=1&amp;ie=utf-8&amp;rsv_cq=csdn&amp;rsv_dl=0_right_recommends_merge_21102&amp;euri=383f86daaa774c26811bc2e310748e94">iteye</a></div>
                        <div>
            <img src="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAEoAAAAoCAYAAABZ7GwgAAAEZElEQVR42u2ZPXqzOhCF39wnPepSoo6SUjswO7B3wJ7MCgwrMKzAKimpLEpXESvgFoAtE4zz4yTfvR+qbMaSRoeZOaPjp7ZtW5Zxd/yzQLAAtQC1ALUAtQD114znP95Dk5NUAXEkv7iQRacZZXPL7rOKI+RDgLKaNCsZ9vJXMRf/DXlSUAPgEa43KPFR29hZi9Y1NDVJctutsx9X/o33ufVsAFHPn7199zi2+92hfR2+vh7a3XbfHrsv7WG3bXeH3nrct9t324bPbXvcb9vt/uhsub/MO/9+1149cv3bbtv9ZbF26/o7O/faj6nxgYiSRBsnMEWA9HJOFiQVpvFRw6uSitDLqAxIMWOTArWJLjsEPugTFonAkBegYvHOFK2ovZD14KJUhDqnssqJoIYySyhvpd731CiLbQSBAIyl8QMnZQQvAszJAjM2KUZnrfGkQgBWa1hFnNKEYlxXrg7bp9Okjw3WAuLrqff8+RpbYMM1ErAnexvOGdu47vmrmCFohdoQYdHarVsWneYQTR1W4DUl2qiuXhlN2YD/m6xn8oSCFXHvrXgRcAOPOVuPCJtYnddNdMh6oxAfdUooNitLUiQkAF5I6FuuF/rB1DuDNKZrO9SW7s2fLIhA3Le5VTBa4SeaygaQO1Q+przxYb0eXBkRxy6bWoLILRW3WoCHst6IvSZs04wzY3s9tDuH5V4PuxFTTe1zi7lGHLgf+XrcXzPqt7Fen/OUGUk5Lo4CFYWkWR/2+KziIX1mbEIRiZQkKZym7xNpN9FQeuGazbmQGfLCEq7lDDHBy8zqT/8t4W6umM939+lJOcANPJKSDcj6q9nu/2lROJdL8QLUAtQC1ALUAtR9mk7R9t6z/i6XTDz/KxROW2GEYiPuPPuRvmqsWs4rlZ8dH++jTE5S1G9Uw6BymrdZSePxQFnlKq1/UERdrgd9p4xBG8nauX6YPOX0P6pRD/lzwWoNajN9R7OaNLOoIR0mdfcuMoy83M+sTsmM7FSBWa3+dqS562FyEi16CcfV6cf3wgcC1YwvxlGXejmb+wfQEMVxB6rJSYocE0co5VPqCqsUAktlGvz+8605w1b1oEE5d7br9Tr11FdRD5JGrGMicQE1f5kH/0Gp1ymSQZ6QM7ehQEUKq1OScz3rNUgZ4Be607gHDV7emTMXYe56wlDVfqdNmYqahnqkaXkT0vTDU+8ivK05pTlGRrdylDQrIVwTx+Kclv1sAr9AV5YAA+F1qk7PmfUGFWryyhKgqX1FNBb6fq/h7P5Vkb2K+RYoS+OFREMdqgwuT0oVgtFoA/Ksjs7PmfUmkOf1QiUvkdaUaOMSeY75jmL+pkZNCmH9PzT2CglCnZH1kz3fx7s+GZKMUqz6+vGOOeMa5bYlQqFEQmFDp02RRGtXSOxT9zv6qIsI5gpp10xyFsLGrPfDw+QJWtxntcc3nB9uHRya/2mUHviSnr/xVfYd/Fd08K9FUlF3afWISF6k4EVmWYD6lfEvJsqfcN/78U8AAAAASUVORK5CYII=" class="opr-recommends-merge-imgtext" data-nolog="1">        </div>
                            </div>   





    <div class="c-span4  c-span-last opr-recommends-merge-lastspan opr-recommends-merge-item " data-click="{'rsv_re_ename':'微信开发者社区','rsv_re_uri':'de1fb1a6f7154024b643c7462102627f'}">
                                                    <div class="opr-recommends-merge-p">
            <a target="_blank" href="/s?rsv_idx=1&amp;wd=%E5%BE%AE%E4%BF%A1%E5%BC%80%E5%8F%91%E8%80%85%E7%A4%BE%E5%8C%BA&amp;usm=1&amp;ie=utf-8&amp;rsv_cq=csdn&amp;rsv_dl=0_right_recommends_merge_21102&amp;euri=de1fb1a6f7154024b643c7462102627f"><img data-b64il-id="207307806_3185678615_58" data-src="https://ss0.baidu.com/6ONWsjip0QIZ8tyhnq/it/u=207307806,3185678615&amp;fm=58" class="c-img c-img4 opr-recommends-merge-img" src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAAQABAAD/2wBDAAUDBAQEAwUEBAQFBQU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8z4sRAwr6bLHnx/qvraWIs4vn0wOAJaeLH8fyqCloKali/OBPf8A3c0qzU6qsgUExrb52WyPKpbsb7o3e1g8XKN/Fj+ldTZf5/qpJsb7o3e1g8SqKtp08zh4JqGFqqlb/wBLJskZIgyRF4zBUlvZ9AsPWSetXaqS3s+gWHrJPWtTRr6X74ZjdQdum8LKM7IiJGCUIiLjgpbsb7o3e1g8XKJKW7G+6N3tYPFymrLeZw8Fen3Ur7LJskZIgyRFw0H/2Q=="></a>
            <a class="opr-recommends-merge-mask" target="_blank" href="/s?rsv_idx=1&amp;wd=%E5%BE%AE%E4%BF%A1%E5%BC%80%E5%8F%91%E8%80%85%E7%A4%BE%E5%8C%BA&amp;usm=1&amp;ie=utf-8&amp;rsv_cq=csdn&amp;rsv_dl=0_right_recommends_merge_21102&amp;euri=de1fb1a6f7154024b643c7462102627f"></a>                    </div>
        <div class="c-gap-top-small"><a target="_blank" title="微信开发者社区" href="/s?rsv_idx=1&amp;wd=%E5%BE%AE%E4%BF%A1%E5%BC%80%E5%8F%91%E8%80%85%E7%A4%BE%E5%8C%BA&amp;usm=1&amp;ie=utf-8&amp;rsv_cq=csdn&amp;rsv_dl=0_right_recommends_merge_21102&amp;euri=de1fb1a6f7154024b643c7462102627f">微信开发者社区</a></div>
                        <div>
            <img src="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAEoAAAAoCAYAAABZ7GwgAAAEGUlEQVR42u2ZPbbiOBSEvzdncisjRBmhQ+0AzQrMDrynpxVgVoBYAQoJiTAh0btegTsw8Gxsg+mG091nrMxY1k+pbt2r4qMsy5KxPWz/jBCMQI1AjUCNQI1A/W/av8O6CSELTBYWjRAyD3aBUV3ve0YIGaudYp7292m03OP2M1Kru99tjoNWPp2nWF3N77EsjAIJZGHCwurzWDxeVzmofZXb5bo8XB+35XJ96H/f+nxbLj/X5Xa7LD/Xh2Ezbpflcvv1sN9hvSyb3Q7lerktv+71O6xvxj6U68/bcZrt50JPGQyBIEPIGMhWO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6Z/sBrnqNGyzYvTwAAAAASUVORK5CYII=" class="opr-recommends-merge-imgtext" data-nolog="1">        </div>
                            </div>   

    </div>

        所有的href都是/开头的,也就是指向你的域名,而不是www.baidu.com,而你的服务器上没有这些东西,当然显示不了。
a292228108
a292228108 图片是被禁止访问 403 Forbidden,这个有解决的办法吗
接近 2 年之前 回复
oyljerry
oyljerry   Ds   Rxr 2016.03.01 15:35

看看是不是图片需要传递特殊的参数或token

mo_lu
mo_lu   2016.03.01 22:46

从抓的网页里取出图片的标签链接再抓取

a292228108
a292228108 图片链接直接访问是403禁止访问错误
接近 2 年之前 回复
a292228108
a292228108 图片链接直接访问是403禁止访问错误
接近 2 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!