使用Python的Scrapy框架编写web爬虫的简单示例

发表于 5年以前  | 总阅读数:644 次

在这个教材中,我们假定你已经安装了Scrapy。假如你没有安装,你可以参考这个安装指南

我们将会用开放目录项目(dmoz)作为我们例子去抓取。

这个教材将会带你走过下面这几个方面:

  • 创造一个新的Scrapy项目
  • 定义您将提取的Item
  • 编写一个蜘蛛去抓取网站并提取Items
  • 编写一个Item Pipeline用来存储提出出来的Items

Scrapy由Python写成。假如你刚刚接触Python这门语言,你可能想要了解这门语言起,怎么最好的利用这门语言。假如你已经熟悉其它类似的语言,想要快速地学习Python,我们推荐这种深入方式学习Python。假如你是新手,想从开始使用Python学习,可以尝试去看看非程序员Python资源列表

创造一个项目

在你要抓取之前,首先要建立一个新的Scrapy项目。然后进去你的存放代码目录,执行如下命令。


    scrapy startproject tutorial

它将会创建如下的向导目录:

复制代码 代码如下:

tutorial/
scrapy.cfg
tutorial/
init.py
items.py
pipelines.py
settings.py
spiders/
init.py
...

这是一些基本信息:

  • scrapy.cfg: 项目的配置文件。
  • tutorial/: 项目的python模块, 在这里稍后你将会导入你的代码。
  • tutorial/items.py: 项目items文件。
  • tutorial/pipelines.py: 项目管道文件。
  • tutorial/settings.py: 项目配置文件。
  • tutorial/spiders/: 你将要放入你的spider到这个目录中。

定义我们的Item

Items是装载我们抓取数据的容器。它们工作像简单的Python字典,它提供更多的保护,比如对未定义的字段提供填充功能防止出错。

它们通过创建scrapy.item.Item类来声明并定义它们的属性作为scrapy.item.Field 对象,就像是一个对象关系映射(假如你不熟悉ORMs,你将会看见它是一个简单的任务).

我们将需要的item模块化,来控制从demoz.org网站获取的数据,比如我们将要去抓取网站的名字,url和描述信息。我们定义这三种属性的域。我们编辑items.py文件,它在向导目录中。我们Item类看起来像这样。


    from scrapy.item import Item, Field

    class DmozItem(Item):
     title = Field()
     link = Field()
     desc = Field()

这个看起来复杂的,但是定义这些item能让你用其他Scrapy组件的时候知道你的item到底是什么

我们第一个Spider

Spiders是用户写的类,它用来去抓取一个网站的信息(或者一组网站) 。
我们定义一个初始化的URLs列表去下载,如何跟踪链接,如何去解析这些页面的内容去提取 items.创建一个Spider,你必须是scrapy.spider.BaseSpider的子类, 并定义三个主要的,强制性的属性。

[名字](http://doc.scrapy.org/en/0.16/topics/spiders.html#scrapy.spider.BaseSpider.name): Spider的标识. 它必须是唯一的, 那就是说,你不能在不同的Spiders中设置相同的名字。

[开始链接](http://doc.scrapy.org/en/0.16/topics/spiders.html#scrapy.spider.BaseSpider.start_urls):Spider将会去爬这些URLs的列表。所以刚开始的下载页面将要包含在这些列表中。其他子URL将会从这些起始URL中继承性生成。

[parse() ](http://doc.scrapy.org/en/0.16/topics/spiders.html#scrapy.spider.BaseSpider.parse)是spider的一个方法, 调用时候传入从每一个URL传回的[Response](http://doc.scrapy.org/en/0.16/topics/request-response.html#scrapy.http.Response)对象作为参数。response是方法的唯一参数。

这个方法负责解析response数据和提出抓取的数据(作为抓取的items),跟踪URLs

parse()方法负责处理response和返回抓取数据(作为Item对象) 和跟踪更多的URLs(作为request的对象)

这是我们的第一个Spider的代码;它保存在moz/spiders文件夹中,被命名为dmoz_spider.py:


    from scrapy.spider import BaseSpider

    class DmozSpider(BaseSpider):
     name = "dmoz"
     allowed_domains = ["dmoz.org"]
     start_urls = [
      "http://www.dmoz.org/Computers/Programming/Languages/Python/Books/",
      "http://www.dmoz.org/Computers/Programming/Languages/Python/Resources/"
     ]

     def parse(self, response):
      filename = response.url.split("/")[-2]
      open(filename, 'wb').write(response.body)

为了使你的spider工作, 到项目的顶级目录让后运行:


    scrapy crawl dmoz

crawl dmoz命令使spider去爬dmoz.org网站的信息。你将会得到如下类似的信息:


    2008-08-20 03:51:13-0300 [scrapy] INFO: Started project: dmoz
    2008-08-20 03:51:13-0300 [tutorial] INFO: Enabled extensions: ...
    2008-08-20 03:51:13-0300 [tutorial] INFO: Enabled downloader middlewares: ...
    2008-08-20 03:51:13-0300 [tutorial] INFO: Enabled spider middlewares: ...
    2008-08-20 03:51:13-0300 [tutorial] INFO: Enabled item pipelines: ...
    2008-08-20 03:51:14-0300 [dmoz] INFO: Spider opened
    2008-08-20 03:51:14-0300 [dmoz] DEBUG: Crawled <http://www.dmoz.org/Computers/Programming/Languages/Python/Resources/> (referer: <None>)
    2008-08-20 03:51:14-0300 [dmoz] DEBUG: Crawled <http://www.dmoz.org/Computers/Programming/Languages/Python/Books/> (referer: <None>)
    2008-08-20 03:51:14-0300 [dmoz] INFO: Spider closed (finished)

注意那些行包含[dmoz], 它和我们的spider相关。你能够看见每行初始化的URL日志信息。因为这些URLs是起始页面,所以他们没有引用referrers。 所以在每行的末尾部门,你能看见(referer: ).

但是有趣的是,在我们的parse方法作用下,两个文件被创建: Books and Resources, 它保航两个URLs的内容
刚刚发生了什么事情?

Scrapy为每一个start_urls创建一个scrapy.http.Request对象,并将爬虫的parse 方法指定为回调函数。

这些Request首先被调度,然后被执行,之后通过parse()方法,将scrapy.http.Response对象被返回,结果也被反馈给爬虫。

提取Items
选择器介绍

我们有多种方式去提取网页中数据。Scrapy 使用的是XPath表达式,通常叫做XPath selectors。如果想了解更多关于选择器和提取数据的机制,可以看看如下教程XPath selectors documentation.

这里有一些表达式的例子和它们相关的含义:

  • /html/head/title: 选择<title>元素,在HTML文档的<head>元素里
  • /html/head/title/text(): 选择元素里面的文本</li> <li>//td: 选择所有的<td>元素</li> <li>//div[@class="mine"]: 选择所有的div元素里面class属性为mine的</li> </ul> <p>这里有许多的例子关于怎么使用XPath,可以说XPath表达式是非常强大的。如果你想要学习更多关于XPath,我们推荐如下教程<a href="http://www.w3schools.com/XPath/default.asp">this XPath tutorial</a>.</p> <p>为了更好使用XPaths, Scrapy提供了一个<a href="http://XPathSelector">XPathSelector</a>类,它有两种方式, <a href="http://doc.scrapy.org/en/0.16/topics/selectors.html#scrapy.selector.HtmlXPathSelector">HtmlXPathSelector</a>(HTML相关数据)和<a href="http://doc.scrapy.org/en/0.16/topics/selectors.html#scrapy.selector.XmlXPathSelector">XmlXPathSelector</a>(XML相关数据)。如果你想使用它们,你必须实例化一个<a href="http://doc.scrapy.org/en/0.16/topics/request-response.html#scrapy.http.Response">Response</a>对象.</p> <p>你能够把selectors作为对象,它代表文件结构中的节点。所以,第1个实例的节点相当于root节点,或者称为整个文档的节点。</p> <p>选择器有三种方法(点击方法你能够看见完整的API文档)。</p> <ul> <li> <pre><code>[select()](http://doc.scrapy.org/en/0.16/topics/selectors.html#scrapy.selector.XPathSelector.select): 返回选择器的列表,每一个select表示一个xpath表达式选择的节点。</code></pre> </li> <li><a href="http://doc.scrapy.org/en/0.16/topics/selectors.html#scrapy.selector.XPathSelector.extract">extract()</a>: 返回一个unicode字符串 ,该字符串XPath选择器返回的数据。</li> <li><a href="http://doc.scrapy.org/en/0.16/topics/selectors.html#scrapy.selector.XPathSelector.re">re()</a> : 返回unicode字符串列表,字符串作为参数由正则表达式提取出来。</li> </ul> <p><strong>在Shell里面使用选择器</strong></p> <p>为了更加形象的使用选择器,我们将会使用<a href="http://doc.scrapy.org/en/0.16/topics/shell.html#topics-shell">Scrapy shell</a>,它同时需要你的系统安装IPython (一个扩展的Python控制台)。</p> <p>如果使用shell,你必须到项目的顶级目录上,让后运行如下命令:</p> <p>scrapy shell http://www.dmoz.org/Computers/Programming/Languages/Python/Books/</p> <p>shell将会显示如下的信息</p> <pre><code> [ ... Scrapy log here ... ] [s] Available Scrapy objects: [s] 2010-08-19 21:45:59-0300 [default] INFO: Spider closed (finished) [s] hxs <HtmlXPathSelector (http://www.dmoz.org/Computers/Programming/Languages/Python/Books/) xpath=None> [s] item Item() [s] request <GET http://www.dmoz.org/Computers/Programming/Languages/Python/Books/> [s] response <200 http://www.dmoz.org/Computers/Programming/Languages/Python/Books/> [s] spider <BaseSpider 'default' at 0x1b6c2d0> [s] xxs <XmlXPathSelector (http://www.dmoz.org/Computers/Programming/Languages/Python/Books/) xpath=None> [s] Useful shortcuts: [s] shelp() Print this help [s] fetch(req_or_url) Fetch a new request or URL and update shell objects [s] view(response) View response in a browser In [1]: </code></pre> <p>当shell装载之后,你将会得到一个response的本地变量。所以你输入reponse.body,你能够看见response的body部分或者你能够输入response.headers,你能够看见reponse.headers部分。</p> <p>shell同样实例化了两个选择器,一个是HTML(在hvx变量里),一个是XML(在xxs变量里)。所以我们尝试怎么使用它们:</p> <pre><code> In [1]: hxs.select('//title') Out[1]: [<HtmlXPathSelector (title) xpath=//title>] In [2]: hxs.select('//title').extract() Out[2]: [u'<title>Open Directory - Computers: Programming: Languages: Python: Books</title>'] In [3]: hxs.select('//title/text()') Out[3]: [<HtmlXPathSelector (text) xpath=//title/text()>] In [4]: hxs.select('//title/text()').extract() Out[4]: [u'Open Directory - Computers: Programming: Languages: Python: Books'] In [5]: hxs.select('//title/text()').re('(\w+):') Out[5]: [u'Computers', u'Programming', u'Languages', u'Python'] </code></pre> <p><strong>提取数据Extracting the data</strong></p> <p>现在我们开始尝试在这几个页面里提取真正的信息。</p> <p>你能够在控制台里面输入response.body,检查源代码里面的XPaths是否与预期相同。然而,检查原始的HTML代码是一件非常枯燥乏味的事情。假如你想让你的工作变的简单,你使用Firefox扩展的插件例如Firebug来做这项任务。更多关于介绍信息请看<a href="http://doc.scrapy.org/en/0.16/topics/firebug.html#topics-firebug">Using Firebug for scraping</a>和<a href="http://doc.scrapy.org/en/0.16/topics/firefox.html#topics-firefox">Using Firefox for scraping</a>。</p> <p>当你检查了页面源代码之后,你将会发现页面的信息放在一个<ul>元素里面,事实上,确切地说是第二个<ul>元素。</p> <p>所以我们选择每一个<li>元素使用如下的代码: </p> <pre><code> hxs.select('//ul/li') </code></pre> <p>网站的描述信息可以使用如下代码: </p> <pre><code> hxs.select('//ul/li/text()').extract() </code></pre> <p>网站的标题: </p> <pre><code> hxs.select('//ul/li/a/text()').extract() </code></pre> <p>网站的链接: </p> <pre><code> hxs.select('//ul/li/a/@href').extract() </code></pre> <p>如前所述,每个select()调用返回一个selectors列表,所以我们可以结合select()去挖掘更深的节点。我们将会用到这些特性,所以: </p> <pre><code> sites = hxs.select('//ul/li') for site in sites: title = site.select('a/text()').extract() link = site.select('a/@href').extract() desc = site.select('text()').extract() print title, link, desc Note </code></pre> <p>如果想了解更多的嵌套选择器,可以参考<a href="http://doc.scrapy.org/en/0.16/topics/selectors.html#topics-selectors-nesting-selectors">Nesting selectors</a>和<a href="http://doc.scrapy.org/en/0.16/topics/selectors.html#topics-selectors-relative-xpaths">Working with relative XPaths</a>相关的<a href="http://doc.scrapy.org/en/0.16/topics/selectors.html#topics-selectors">Selectors</a>文档<br /> 将代码添加到我们spider中:</p> <pre><code> from scrapy.spider import BaseSpider from scrapy.selector import HtmlXPathSelector class DmozSpider(BaseSpider): name = "dmoz" allowed_domains = ["dmoz.org"] start_urls = [ "http://www.dmoz.org/Computers/Programming/Languages/Python/Books/", "http://www.dmoz.org/Computers/Programming/Languages/Python/Resources/" ] def parse(self, response): hxs = HtmlXPathSelector(response) sites = hxs.select('//ul/li') for site in sites: title = site.select('a/text()').extract() link = site.select('a/@href').extract() desc = site.select('text()').extract() print title, link, desc </code></pre> <p>现在我们再次抓取dmoz.org,你将看到站点在输出中被打印 ,运行命令: </p> <pre><code> scrapy crawl dmoz </code></pre> <p><strong>使用我们的 item</strong></p> <p><a href="http://doc.scrapy.org/en/0.16/topics/items.html#scrapy.item.Item">Item</a>对象是自定义python字典;使用标准字典类似的语法,你能够访问它们的字段(就是以前我们定义的属性) </p> <pre><code> >>> item = DmozItem() >>> item['title'] = 'Example title' >>> item['title'] 'Example title' </code></pre> <p>Spiders希望将抓取的数据放在 Item对象里。所以,为了返回我们抓取的数据,最终的代码要如下这么写 :</p> <pre><code> from scrapy.spider import BaseSpider from scrapy.selector import HtmlXPathSelector from tutorial.items import DmozItem class DmozSpider(BaseSpider): name = "dmoz" allowed_domains = ["dmoz.org"] start_urls = [ "http://www.dmoz.org/Computers/Programming/Languages/Python/Books/", "http://www.dmoz.org/Computers/Programming/Languages/Python/Resources/" ] def parse(self, response): hxs = HtmlXPathSelector(response) sites = hxs.select('//ul/li') items = [] for site in sites: item = DmozItem() item['title'] = site.select('a/text()').extract() item['link'] = site.select('a/@href').extract() item['desc'] = site.select('text()').extract() items.append(item) return items </code></pre> <p><strong>Note<br /> </strong></p> <p>你能够找到完整功能的spider在dirbot项目里,同样你可以访问https://github.com/scrapy/dirbot</p> <p>现在重新抓取dmoz.org网站:</p> <pre><code> [dmoz] DEBUG: Scraped from <200 http://www.dmoz.org/Computers/Programming/Languages/Python/Books/> {'desc': [u' - By David Mertz; Addison Wesley. Book in progress, full text, ASCII format. Asks for feedback. [author website, Gnosis Software, Inc.\n], 'link': [u'http://gnosis.cx/TPiP/'], 'title': [u'Text Processing in Python']} [dmoz] DEBUG: Scraped from <200 http://www.dmoz.org/Computers/Programming/Languages/Python/Books/> {'desc': [u' - By Sean McGrath; Prentice Hall PTR, 2000, ISBN 0130211192, has CD-ROM. Methods to build XML applications fast, Python tutorial, DOM and SAX, new Pyxie open source XML processing library. [Prentice Hall PTR]\n'], 'link': [u'http://www.informit.com/store/product.aspx?isbn=0130211192'], 'title': [u'XML Processing with Python']} </code></pre> <p><strong><br /> 存储抓取的数据</strong></p> <p>最简单的方式去存储抓取的数据是使用<a href="http://doc.scrapy.org/en/0.16/topics/feed-exports.html#topics-feed-exports">Feed exports</a>,使用如下的命令:</p> <pre><code> scrapy crawl dmoz -o items.json -t json </code></pre> <p>它将会产生一个items.json文件,它包含所有抓取的items(序列化的<a href="http://en.wikipedia.org/wiki/JSON">JSON</a>)。</p> <p>在一些小的项目里(例如我们的教程中),那就足够啦。然而,假如你想要执行更多复杂的抓取items,你能够写一个 <a href="http://doc.scrapy.org/en/0.16/topics/item-pipeline.html#topics-item-pipeline">Item Pipeline</a>。 因为在项目创建的时候,一个专门用于Item Pipelines的占位符文件已经随着项目一起被建立,目录在tutorial/pipelines.py。如果你只需要存取这些抓取后的items的话,就不需要去实现任何的条目管道。 </p> </div> </div> </div> <div class="blockgap"></div> <div style="background-color:#fff;padding-top:8px;border-radius: 4px;padding-bottom:8px;"> <div style="margin-left:21px;"> <script type="text/javascript"> (function() { var s = "_" + Math.random().toString(36).slice(2); document.write('<div style="" id="' + s + '"></div>'); (window.slotbydup = window.slotbydup || []).push({ id: "u3790074", container: s }); })(); </script> </div> </div> <div class="blockgap"></div> <div class="sideblock"> <div class="block-title"><i style="font-size:1.8rem;" class="fab fa-audible"></i><span style="font-size:1.8rem;"> 相关推荐</span></div> <div class="block-body"> <div class="tp-postitem"> <div class="tp-postitem-thumbnailwrapper"> <img class="tp-postitem-thumbnailimg lazy" data-original="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn/img/2023-09-04/71a1bb7210e2f17f8e0e3e49647fbe46.jpg"/> </div> <div class="tp-postitem-textwrapper"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/4/219.html"> 刘强东夫妇:“移民美国”传言被驳斥 </a> </h3> <div class="tp-postitem-summary"> <p> 京东创始人刘强东和其妻子章泽天最近成为了互联网舆论关注的焦点。有关他们“移民美国”和在美国购买豪宅的传言在互联网上广泛传播。然而,京东官方通过微博发言人发布的消息澄清了这些传言,称这些言论纯属虚假信息和蓄意捏造。 </p> </div> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span >808次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/4/219.html" target="_blank">详细内容 »</a> </div> <div style="clear:both"></div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <div class="tp-postitem-thumbnailwrapper"> <img class="tp-postitem-thumbnailimg lazy" data-original="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/images/ent-logo-thumb/huwei.jpg"/> </div> <div class="tp-postitem-textwrapper"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/4/901.html"> 博主曝三大运营商,将集体采购百万台华为Mate60系列 </a> </h3> <div class="tp-postitem-summary"> <p> 日前,据博主“@超能数码君老周”爆料,国内三大运营商中国移动、中国电信和中国联通预计将集体采购百万台规模的华为Mate60系列手机。 </p> </div> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span >770次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/4/901.html" target="_blank">详细内容 »</a> </div> <div style="clear:both"></div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/8/284.html"> ASML CEO警告:出口管制不是可行做法,不要“逼迫中国大陆创新” </a> </h3> <div class="tp-postitem-summary"> <p> 据报道,荷兰半导体设备公司ASML正看到美国对华遏制政策的负面影响。阿斯麦(ASML)CEO彼得·温宁克在一档电视节目中分享了他对中国大陆问题以及该公司面临的出口管制和保护主义的看法。彼得曾在多个场合表达了他对出口管制以及中荷经济关系的担忧。 </p> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span>756次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/8/284.html" target="_blank">详细内容 »</a> </div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <div class="tp-postitem-thumbnailwrapper"> <img class="tp-postitem-thumbnailimg lazy" data-original="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/images/ent-logo-thumb/douyin.jpg"/> </div> <div class="tp-postitem-textwrapper"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/5/467.html"> 抖音中长视频App青桃更名抖音精选,字节再发力对抗B站 </a> </h3> <div class="tp-postitem-summary"> <p> 今年早些时候,抖音悄然上线了一款名为“青桃”的 App,Slogan 为“看见你的热爱”,根据应用介绍可知,“青桃”是一个属于年轻人的兴趣知识视频平台,由抖音官方出品的中长视频关联版本,整体风格有些类似B站。 </p> </div> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span >648次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/5/467.html" target="_blank">详细内容 »</a> </div> <div style="clear:both"></div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <div class="tp-postitem-thumbnailwrapper"> <img class="tp-postitem-thumbnailimg lazy" data-original="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn/img/2023-09-05/306e611a07fbb00c7022a7014b0b7f73"/> </div> <div class="tp-postitem-textwrapper"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/5/927.html"> 威马CDO:中国每百户家庭仅17户有车 </a> </h3> <div class="tp-postitem-summary"> <p> 日前,威马汽车首席数据官梅松林转发了一份“世界各国地区拥车率排行榜”,同时,他发文表示:中国汽车普及率低于非洲国家尼日利亚,每百户家庭仅17户有车。意大利世界排名第一,每十户中九户有车。 </p> </div> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span >589次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/5/927.html" target="_blank">详细内容 »</a> </div> <div style="clear:both"></div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/4/526.html"> 研究发现维生素 C 等抗氧化剂会刺激癌症生长和转移 </a> </h3> <div class="tp-postitem-summary"> <p> 近日,一项新的研究发现,维生素 C 和 E 等抗氧化剂会激活一种机制,刺激癌症肿瘤中新血管的生长,帮助它们生长和扩散。 </p> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span>449次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/4/526.html" target="_blank">详细内容 »</a> </div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <div class="tp-postitem-thumbnailwrapper"> <img class="tp-postitem-thumbnailimg lazy" data-original="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/images/ent-logo-thumb/apple.jpg"/> </div> <div class="tp-postitem-textwrapper"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/1/463.html"> 苹果据称正引入3D打印技术,用以生产智能手表的钢质底盘 </a> </h3> <div class="tp-postitem-summary"> <p> 据媒体援引消息人士报道,苹果公司正在测试使用3D打印技术来生产其智能手表的钢质底盘。消息传出后,3D系统一度大涨超10%,不过截至周三收盘,该股涨幅回落至2%以内。 </p> </div> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span >446次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/1/463.html" target="_blank">详细内容 »</a> </div> <div style="clear:both"></div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <div class="tp-postitem-thumbnailwrapper"> <img class="tp-postitem-thumbnailimg lazy" data-original="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn/img/2023-09-04/feaca95ded3028bc03a8da8a0e24a1a2"/> </div> <div class="tp-postitem-textwrapper"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/4/1044.html"> 千万级抖音网红秀才账号被封禁 </a> </h3> <div class="tp-postitem-summary"> <p> 9月2日,坐拥千万粉丝的网红主播“秀才”账号被封禁,在社交媒体平台上引发热议。平台相关负责人表示,“秀才”账号违反平台相关规定,已封禁。据知情人士透露,秀才近期被举报存在违法行为,这可能是他被封禁的部分原因。据悉,“秀才”年龄39岁,是安徽省亳州市蒙城县人,抖音网红,粉丝数量超1200万。他曾被称为“中老年... </p> </div> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span >445次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/4/1044.html" target="_blank">详细内容 »</a> </div> <div style="clear:both"></div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/4/302.html"> 亚马逊股东起诉公司和贝索斯,称其在购买卫星发射服务时忽视了 SpaceX </a> </h3> <div class="tp-postitem-summary"> <p> 9月3日消息,亚马逊的一些股东,包括持有该公司股票的一家养老基金,日前对亚马逊、其创始人贝索斯和其董事会提起诉讼,指控他们在为 Project Kuiper 卫星星座项目购买发射服务时“违反了信义义务”。 </p> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span>444次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/4/302.html" target="_blank">详细内容 »</a> </div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <div class="tp-postitem-thumbnailwrapper"> <img class="tp-postitem-thumbnailimg lazy" data-original="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/images/ent-logo-thumb/apple.jpg"/> </div> <div class="tp-postitem-textwrapper"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/4/725.html"> 苹果上线AppsbyApple网站,以推广自家应用程序 </a> </h3> <div class="tp-postitem-summary"> <p> 据消息,为推广自家应用,苹果现推出了一个名为“Apps by Apple”的网站,展示了苹果为旗下产品(如 iPhone、iPad、Apple Watch、Mac 和 Apple TV)开发的各种应用程序。 </p> </div> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span >442次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/4/725.html" target="_blank">详细内容 »</a> </div> <div style="clear:both"></div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <div class="tp-postitem-thumbnailwrapper"> <img class="tp-postitem-thumbnailimg lazy" data-original="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/images/ent-logo-thumb/tesla.jpg"/> </div> <div class="tp-postitem-textwrapper"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/4/647.html"> 特斯拉美国降价引发投资者不满:“这是短期麻醉剂” </a> </h3> <div class="tp-postitem-summary"> <p> 特斯拉本周在美国大幅下调Model S和X售价,引发了该公司一些最坚定支持者的不满。知名特斯拉多头、未来基金(Future Fund)管理合伙人加里·布莱克发帖称,降价是一种“短期麻醉剂”,会让潜在客户等待进一步降价。 </p> </div> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span >441次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/4/647.html" target="_blank">详细内容 »</a> </div> <div style="clear:both"></div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/4/664.html"> 光刻机巨头阿斯麦:拿到许可,继续对华出口 </a> </h3> <div class="tp-postitem-summary"> <p> 据外媒9月2日报道,荷兰半导体设备制造商阿斯麦称,尽管荷兰政府颁布的半导体设备出口管制新规9月正式生效,但该公司已获得在2023年底以前向中国运送受限制芯片制造机器的许可。 </p> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span>437次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/4/664.html" target="_blank">详细内容 »</a> </div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <div class="tp-postitem-thumbnailwrapper"> <img class="tp-postitem-thumbnailimg lazy" data-original="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/images/ent-logo-thumb/elonmask.jpg"/> </div> <div class="tp-postitem-textwrapper"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/4/118.html"> 马斯克与库克首次隔空合作:为苹果提供卫星服务 </a> </h3> <div class="tp-postitem-summary"> <p> 近日,根据美国证券交易委员会的文件显示,苹果卫星服务提供商 Globalstar 近期向马斯克旗下的 SpaceX 支付 6400 万美元(约 4.65 亿元人民币)。用于在 2023-2025 年期间,发射卫星,进一步扩展苹果 iPhone 系列的 SOS 卫星服务。 </p> </div> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span >430次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/4/118.html" target="_blank">详细内容 »</a> </div> <div style="clear:both"></div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <div class="tp-postitem-thumbnailwrapper"> <img class="tp-postitem-thumbnailimg lazy" data-original="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/images/ent-logo-thumb/elonmask.jpg"/> </div> <div class="tp-postitem-textwrapper"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/4/260.html"> 𝕏(推特)调整隐私政策,可拿用户发布的信息训练 AI 模型 </a> </h3> <div class="tp-postitem-summary"> <p> 据报道,马斯克旗下社交平台𝕏(推特)日前调整了隐私政策,允许 𝕏 使用用户发布的信息来训练其人工智能(AI)模型。新的隐私政策将于 9 月 29 日生效。新政策规定,𝕏可能会使用所收集到的平台信息和公开可用的信息,来帮助训练 𝕏 的机器学习或人工智能模型。 </p> </div> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span >428次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/4/260.html" target="_blank">详细内容 »</a> </div> <div style="clear:both"></div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/4/214.html"> 荣耀CEO谈华为手机回归:替老同事们高兴,对行业也是好事 </a> </h3> <div class="tp-postitem-summary"> <p> 9月2日,荣耀CEO赵明在采访中谈及华为手机回归时表示,替老同事们高兴,觉得手机行业,由于华为的回归,让竞争充满了更多的可能性和更多的魅力,对行业来说也是件好事。 </p> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span>423次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/4/214.html" target="_blank">详细内容 »</a> </div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <div class="tp-postitem-thumbnailwrapper"> <img class="tp-postitem-thumbnailimg lazy" data-original="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn/img/2023-09-01/ad1699b6ffae6610a2f72bdbe100ae3b"/> </div> <div class="tp-postitem-textwrapper"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/1/962.html"> AI操控无人机能力超越人类冠军 </a> </h3> <div class="tp-postitem-summary"> <p> 《自然》30日发表的一篇论文报道了一个名为Swift的人工智能(AI)系统,该系统驾驶无人机的能力可在真实世界中一对一冠军赛里战胜人类对手。 </p> </div> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span >423次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/1/962.html" target="_blank">详细内容 »</a> </div> <div style="clear:both"></div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <div class="tp-postitem-thumbnailwrapper"> <img class="tp-postitem-thumbnailimg lazy" data-original="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/images/ent-logo-thumb/openai.jpg"/> </div> <div class="tp-postitem-textwrapper"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/1/391.html"> AI生成的蘑菇科普书存在可致命错误 </a> </h3> <div class="tp-postitem-summary"> <p> 近日,非营利组织纽约真菌学会(NYMS)发出警告,表示亚马逊为代表的电商平台上,充斥着各种AI生成的蘑菇觅食科普书籍,其中存在诸多错误。 </p> </div> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span >420次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/1/391.html" target="_blank">详细内容 »</a> </div> <div style="clear:both"></div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <div class="tp-postitem-thumbnailwrapper"> <img class="tp-postitem-thumbnailimg lazy" data-original="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/images/ent-logo-thumb/elonmask.jpg"/> </div> <div class="tp-postitem-textwrapper"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/1/452.html"> 社交媒体平台𝕏计划收集用户生物识别数据与工作教育经历 </a> </h3> <div class="tp-postitem-summary"> <p> 社交媒体平台𝕏(原推特)新隐私政策提到:“在您同意的情况下,我们可能出于安全、安保和身份识别目的收集和使用您的生物识别信息。” </p> </div> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span >411次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/1/452.html" target="_blank">详细内容 »</a> </div> <div style="clear:both"></div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/4/178.html"> 国产扫地机器人热销欧洲,国产割草机器人抢占欧洲草坪 </a> </h3> <div class="tp-postitem-summary"> <p> 2023年德国柏林消费电子展上,各大企业都带来了最新的理念和产品,而高端化、本土化的中国产品正在不断吸引欧洲等国际市场的目光。 </p> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span>406次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/4/178.html" target="_blank">详细内容 »</a> </div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <div class="tp-postitem-thumbnailwrapper"> <img class="tp-postitem-thumbnailimg lazy" data-original="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/images/ent-logo-thumb/apple.jpg"/> </div> <div class="tp-postitem-textwrapper"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/4/268.html"> 罗永浩吐槽iPhone15和14不会有区别,除了序列号变了 </a> </h3> <div class="tp-postitem-summary"> <p> 罗永浩日前在直播中吐槽苹果即将推出的 iPhone 新品,具体内容为:“以我对我‘子公司’的了解,我认为 iPhone 15 跟 iPhone 14 不会有什么区别的,除了序(列)号变了,这个‘不要脸’的东西,这个‘臭厨子’。 </p> </div> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span >398次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/4/268.html" target="_blank">详细内容 »</a> </div> <div style="clear:both"></div> </div> </div> </div> <div style="height:8px;"></div> </div> <div class="three columns"> <!-- article h5entry --> <div class="sideblock"> <a href="https://m.hellobit.com.cn/doc/day/2018-04-13/9288.html"> <div style="padding:10px 10px 0px 10px;"> <div style="float:left;"> <img style="width:50px;height:50px;" src="/qrcode/aHR0cHM6Ly9tLmhlbGxvYml0LmNvbS5jbi9kb2MvZGF5LzIwMTgtMDQtMTMvOTI4OC5odG1s?size=400&margin=0"></img> </div> <div style="float:left;margin-left:10px;"> <p class="headline">扫码在手机上访问</p> <p class="descline">为您提供高质量的文档</p> </div> <div style="clear:both;"></div> </div> </a> </div> <div class="blockgap"></div> <!-- tech list --> <div class="sideblock"> <div class="block-title"><i class="fas fa-chart-line"></i><span> 相关文章</span></div> <div class="block-body"> <div style="border-bottom:1px dashed #eee;padding:8px 0px;"> <a class="urlblockv2 cleanurl" href="/doc/day/2018-09-22/8440.html"> <span class="fa fa-caret-right"></span> Android插件化方案 </a> <span style="font-size: 14px;color: #333;display:inline-block;">5年以前  <span style="color:#ccc;">|</span>  237183次阅读</span> </div> <div style="border-bottom:1px dashed #eee;padding:8px 0px;"> <a class="urlblockv2 cleanurl" href="/doc/2022/12/27/653.html"> <span class="fa fa-caret-right"></span> 前端录屏 + 定位源码,帮你快速定位线上 bug </a> <span style="font-size: 14px;color: #333;display:inline-block;">1年以前  <span style="color:#ccc;">|</span>  27728次阅读</span> </div> <div style="border-bottom:1px dashed #eee;padding:8px 0px;"> <a class="urlblockv2 cleanurl" href="/doc/2021/11/4/389.html"> <span class="fa fa-caret-right"></span> 飞书里面给链接生成一个预览是怎么做到的? </a> <span style="font-size: 14px;color: #333;display:inline-block;">2年以前  <span style="color:#ccc;">|</span>  9805次阅读</span> </div> <div style="border-bottom:1px dashed #eee;padding:8px 0px;"> <a class="urlblockv2 cleanurl" href="/doc/2022/10/19/765.html"> <span class="fa fa-caret-right"></span> vscode超好用的代码书签插件Bookmarks </a> <span style="font-size: 14px;color: #333;display:inline-block;">2年以前  <span style="color:#ccc;">|</span>  8005次阅读</span> </div> <div style="padding:8px;"> <a class="urlblockv2 cleanurl" href="/doc/2020/1/5/861.html"> <span class="fa fa-caret-right"></span> raw.githubusercontent.com被污染的解决办法 </a> <span style="font-size: 14px;color: #333;display:inline-block;">4年以前  <span style="color:#ccc;">|</span>  7808次阅读</span> </div> </div> </div> <div class="blockgap"></div> <!-- article toc, 放最后 --> <div id="toc_panel_all"> <div id="toc_panel"> <div class="sideblock right-menu"> <div class="block-title"><i class="fas fa-stream"></i><span> 目录</span></div> <div class="block-body"> <div id="toc" class="toc-container"></div> </div> </div> <div class="blockgap"></div> </div> <script> function onLoadTocTree(){ tocList(); } </script> <div class="sideblock" style="border-radius: 4px;"> <div class="_d3aes4p30wo" style="width:250px;height:250px;"></div> <script type="text/javascript"> (window.slotbydup = window.slotbydup || []).push({ id: "u1587556", container: "_d3aes4p30wo", async: true }); </script> </div> <div class="blockgap"></div> </div> </div> </div> </div> <br/> <script src="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/themes/gr/vendor/jquery/dist/jquery.min.js"></script> <script src="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/themes/gr/vendor/jqueryui/jquery-ui-core-widget.min.js"></script> <script src="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/themes/gr/vendor/jqueryui/jquery-ui-core-widget.min.js"></script> <link rel="stylesheet" href="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/themes/gr/v6/css/jquery.tocify.css"> <script src="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/themes/gr/v6/js/jquery.tocify.js"></script> <link rel="stylesheet" href="/themes/gr/toc/toc.css?ver=20231113"> <script src="/themes/gr/toc/toc.js?ver=20231113"></script> <script> var __isIEMode = false; </script> <script src="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/themes/gr/vendor/highlight(11.7)/highlight.min.js"></script> <script src="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/themes/gr/v6/js/lazyload.js"></script> <script src="/themes/gr/js/utils.js?ver=20231113"></script> <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script> <script> var articleID = 29288 function onArticlePageLoaded(){ initArticlePage(); } </script> <div class="suspension-panel suspension-panel"> <button id="back-to-top" title="回到顶部" class="btn to-top-btn" style=""> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" class=""><path data-v-01e634ce="" fill-rule="evenodd" clip-rule="evenodd" d="M2.75 1C2.33579 1 2 1.33579 2 1.75C2 2.16421 2.33579 2.5 2.75 2.5H13.25C13.6642 2.5 14 2.16421 14 1.75C14 1.33579 13.6642 1 13.25 1H2.75ZM7.24407 3.87287C7.64284 3.41241 8.35716 3.41241 8.75593 3.87287L13.0622 8.84535C13.6231 9.49299 13.163 10.5 12.3063 10.5H10V14C10 14.5523 9.55228 15 9 15H7C6.44772 15 6 14.5523 6 14V10.5H3.69371C2.83696 10.5 2.37691 9.49299 2.93778 8.84535L7.24407 3.87287Z" fill="#8A919F"></path></svg> </button> <button title="建议反馈" class="btn meiqia-btn" style=""> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" class="icon-feedback"><path data-v-01e634ce="" fill-rule="evenodd" clip-rule="evenodd" d="M1.8252 4.002C1.8252 2.80032 2.79935 1.82617 4.00102 1.82617H12.001C13.2027 1.82617 14.1768 2.80032 14.1768 4.002V9.71628C14.1768 10.918 13.2027 11.8921 12.001 11.8921H9.43308L6.92709 14.1281C6.4455 14.5578 5.68234 14.216 5.68234 13.5706V11.8921H4.00102C2.79934 11.8921 1.8252 10.918 1.8252 9.71628V4.002ZM11.2414 7.86753C11.3826 7.65526 11.3249 7.36878 11.1126 7.22764C10.9004 7.08651 10.6139 7.14417 10.4728 7.35643C9.94042 8.15705 9.03153 8.68309 7.99997 8.68309C6.96841 8.68309 6.05952 8.15705 5.52719 7.35643C5.38605 7.14417 5.09957 7.08651 4.88731 7.22764C4.67504 7.36878 4.61738 7.65526 4.75852 7.86753C5.45467 8.91452 6.64645 9.60617 7.99997 9.60617C9.35349 9.60617 10.5453 8.91452 11.2414 7.86753Z" fill="#1E80FF"></path></svg> </button> </div> <script> setTimeout(function(){ var btn = document.getElementById('back-to-top'); if(btn != null){ btn.onclick = function(){ $('body,html').animate({scrollTop:0},300) } } },1000) function initPageAfterCheckToken(){ if(typeof onInitSnippetPage === "function"){ onInitSnippetPage(); } if(typeof onInitSnippetViewPage === "function"){ onInitSnippetViewPage(); } if(typeof onArticlePageLoaded === "function"){ onArticlePageLoaded(); } if(typeof onLoadTocTree === "function"){ onLoadTocTree(); } if(typeof onInitBulmaDialog === "function"){ onInitBulmaDialog(); } } $(document).ready(function(){ initCurrentAuthUser(function(){ if(isLogined()){ $("#login-nav-menu").hide(); //$("#login-nav-menu").text("登录"); //$("#register-nav-menu").hide(); //$("#register-nav-menu").text("注册"); $("#userinfo-nav-menu").show(); $("#username-label").text(getDisplayName()); }else{ $("#login-nav-menu").show(); $("#userinfo-nav-menu").hide(); $("#userinfo-nav-menu-link").hide(); } initPageAfterCheckToken(); }); $('img.lazy').lazyload(); if(typeof wechatShareArticle === "function"){ wechatShareArticle(); } if(__isIEMode){ hljs.initHighlighting(); }else{ hljs.highlightAll(); } if(typeof onInitBookContentPage === "function"){ onInitBookContentPage(); } if(typeof onInitSearchPage === "function"){ onInitSearchPage(); } // 主界面右侧菜单点击 /*$('#userinfo-nav-menu').click(function(){ $("#dropMenuWrapper").toggle(); });*/ }); $(document).click(function(event){ var navMenuIds = ["userinfo-nav-menu","username-label","username-label-caret"] var eventId = $(event.target).attr("id"); var arrIndex = navMenuIds.indexOf(eventId); if(arrIndex >= 0){ return; } $("#dropMenuWrapper").hide(); }); </script> <div class="modal"> <div class="modal-background"></div> <div class="modal-card-body"> <ul> <li>收藏文章</li> </ul> </div> <button class="button">暂不登录</button> <a href="/user/login" class="button is-primary">去登录</a> </div> <div id="toLoginDialogGuide" class="modal"> <div class="modal-background"></div> <div class="modal-content" style="background-color:#fff;padding:22px 22px 22px 22px;width:400px;"> <h3>登录后可以享受更多权益</h3> <ul style="display:flex;justify-content: space-between;flex-wrap: wrap;flex-direction: row;"> <li class="login-guide-list-item"> <span class="icon-text"><span class="icon" style="color:#3472F7;"><i class="fab fa-dochub"></i></span><span>收藏有用的文章</span></span> </li> <li class="login-guide-list-item"> <span class="icon-text"><span class="icon" style="color:#3472F7;"><i class="fab fa-codepen"></i></span><span>整理自己的代码</span></span> </li> <li class="login-guide-list-item"> <span class="icon-text"><span class="icon" style="color:#3472F7;"><i class="fas fa-history"></i></span><span>查阅浏览足迹</span></span> </li> <li class="login-guide-list-item"> <span class="icon-text"><span class="icon" style="color:#3472F7;"><i class="fas fa-exchange-alt"></i></span><span>多个平台共享账号</span></span> </li> </ul> <a href="/user/login" style="width:100%;" class="button is-primary">去登录</a> <p>首次使用?从这里 <a href="/user/login" class="cleanurl">注册</a></p> </div> </div> <!-- baidu union --> <script type="text/javascript" src="//cpro.baidustatic.com/cpro/ui/c.js" async="async" defer="defer" ></script> <!-- Global site tag (gtag.js) - Google Analytics <script async src="https://www.googletagmanager.com/gtag/js?id=UA-108792812-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-108792812-1'); </script> --> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?713c92a31aa12d55b910e2065c7cda9d"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <script> /*var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?e066867ae5a323a82641e57db7e7c914"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })();*/ </script> <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> <!-- <script type="text/javascript" src="http://tajs.qq.com/stats?sId=66376258" charset="UTF-8"></script> --> <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-2VE3RBLF6N"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-2VE3RBLF6N'); </script> </body> </html>