<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Jim Deng</title>
    <link>http://localhost:1313/authors/jim-deng/</link>
    <description>Recent content on Jim Deng</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <managingEditor>dev@jimdeng.com (Jim Deng)</managingEditor>
    <webMaster>dev@jimdeng.com (Jim Deng)</webMaster>
    <copyright>© 2026 Jim Deng</copyright>
    <lastBuildDate>Sat, 07 Sep 2024 23:43:34 +0800</lastBuildDate><atom:link href="http://localhost:1313/authors/jim-deng/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>剑指offer(Go版本)-数组</title>
      <link>http://localhost:1313/posts/%E5%89%91%E6%8C%87offer/</link>
      <pubDate>Sat, 07 Sep 2024 23:43:34 +0800</pubDate>
      <author>dev@jimdeng.com (Jim Deng)</author>
      <guid>http://localhost:1313/posts/%E5%89%91%E6%8C%87offer/</guid>
      <description>&lt;h1 class=&#34;relative group&#34;&gt;剑指offer(Go版本)-数组&#xA;    &lt;div id=&#34;剑指offergo版本-数组&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#%e5%89%91%e6%8c%87offergo%e7%89%88%e6%9c%ac-%e6%95%b0%e7%bb%84&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h1&gt;&#xA;&#xA;&lt;h3 class=&#34;relative group&#34;&gt;1.和为S的两个数字&#xA;    &lt;div id=&#34;1和为s的两个数字&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#1%e5%92%8c%e4%b8%bas%e7%9a%84%e4%b8%a4%e4%b8%aa%e6%95%b0%e5%ad%97&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h3&gt;&#xA;&lt;p&gt;输入一个递增排序的数组和一个数字S，在数组中查找两个数，使得他们的和正好是S，如果有多对数字的和等于S，输出两个数的乘积最小的。&lt;/p&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://localhost:1313/posts/%E5%89%91%E6%8C%87offer/featured.jpg" />
    </item>
    
    <item>
      <title>爬虫项目-猫眼TOP100爬取</title>
      <link>http://localhost:1313/posts/crawl-maoyan/</link>
      <pubDate>Sat, 07 Sep 2024 00:55:01 +0800</pubDate>
      <author>dev@jimdeng.com (Jim Deng)</author>
      <guid>http://localhost:1313/posts/crawl-maoyan/</guid>
      <description>&lt;h1 class=&#34;relative group&#34;&gt;爬取猫眼TOP100榜&#xA;    &lt;div id=&#34;爬取猫眼top100榜&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#%e7%88%ac%e5%8f%96%e7%8c%ab%e7%9c%bctop100%e6%a6%9c&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h1&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;1. 爬取流程&#xA;    &lt;div id=&#34;1-爬取流程&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#1-%e7%88%ac%e5%8f%96%e6%b5%81%e7%a8%8b&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;主要有以下四步：&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;爬取单页内容：利利⽤用requests请求⽬目标站点，得 到单个⽹网⻚页HTML代码，返回结果。&lt;/li&gt;&#xA;&lt;li&gt;正则表达式分析：根据HTML代码分析得到电影的 名称、主演、上映时间、评分、 图⽚片链接等信息。&lt;/li&gt;&#xA;&lt;li&gt;保存至文件：通过⽂文件的形式将结果保存，每 一部电影一个结果一行Json字符串，图片保存成jpg格式。&lt;/li&gt;&#xA;&lt;li&gt;开启循环及多线程：对多⻚页内容遍历，开启多线程提 ⾼高抓取速度。&lt;/li&gt;&#xA;&lt;/ol&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://localhost:1313/posts/crawl-maoyan/featured.jpg" />
    </item>
    
  </channel>
</rss>
