<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[SCUTJcfeng的博客]]></title><description><![CDATA[Python 123]]></description><link>https://blog.youkuaiyun.com/SCUTJcfeng</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; SCUTJcfeng]]></copyright><item><title><![CDATA[Python 下载哔哩哔哩视频]]></title><link>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/104346027</link><guid>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/104346027</guid><author>SCUTJcfeng</author><pubDate>Sun, 16 Feb 2020 17:58:39 +0800</pubDate><description><![CDATA[Python 下载哔哩哔哩视频
源码见Github 链接
欢迎留言讨论

说明
支持按 Up 下载和按 av 号下载
例子
要下载凉风所有阅片无数的视频
# up id，比如凉风 14110780
UP_ID = 14110780

# 关键词，如 KEYWORD = '阅片无数' 查看所有带有阅片无数标题的视频
KEYWORD = '阅片无数'

# 视频顺序，关联 up id 和 keywor...]]></description><category></category></item><item><title><![CDATA[Python Fabric模块介绍]]></title><link>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/86351856</link><guid>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/86351856</guid><author>SCUTJcfeng</author><pubDate>Sat, 12 Jan 2019 11:28:24 +0800</pubDate><description><![CDATA[前言
最近有一个需求，需要在服务器执行命令，结果需要返回本地，中间涉及到配置文件的传输，一开始我想到的是Paramiko，后来联想起之前一段时间在公众号看到Fabric，便研究了一下，最后发现Fabric能优雅的完成我的需求，脚本已经开发完成，稳定运行了一段时间，现在总结一下。

介绍
Fabric官方文档：http://docs.fabfile.org/en/2.4/index.html
Fab...]]></description><category></category></item><item><title><![CDATA[新浪GIF下载]]></title><link>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/86349927</link><guid>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/86349927</guid><author>SCUTJcfeng</author><pubDate>Sat, 12 Jan 2019 10:43:19 +0800</pubDate><description><![CDATA[前言
最近偶然发现新浪动图的其中一个接口，就顺便写了一个脚本定时把动图拿下来。
接口地址：https://interface.sina.cn/tech/gif/album.d.json
Known Issues：

只能拿到最近的1000条数据

代码块
#!/usr/bin/python3
# -*- coding:utf-8 –*-

import os
import time
import ...]]></description><category></category></item><item><title><![CDATA[中国裁判文书网爬虫分析]]></title><link>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80159159</link><guid>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80159159</guid><author>SCUTJcfeng</author><pubDate>Tue, 01 May 2018 23:28:09 +0800</pubDate><description><![CDATA[前言

本篇主要分析文书网爬虫思路，仅供个人学习之用，切勿用于任何商业用途。





分析一

中国裁判文书网首页地址：http://wenshu.court.gov.cn/ 



随便点击一下搜索，进入： 

进入第一个结果： 

注意圆圈中的下载按钮，点击下载，一个.docx格式的文档就安安稳稳的躺在你的电脑硬盘上了。 

到这里初步分析结束，我们自然就想到了爬虫的内容： 







...]]></description><category></category></item><item><title><![CDATA[LeetCode：657. Judge Route Circle]]></title><link>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80149791</link><guid>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80149791</guid><author>SCUTJcfeng</author><pubDate>Mon, 30 Apr 2018 15:45:43 +0800</pubDate><description><![CDATA[链接： 
https://leetcode.com/problems/judge-route-circle/description/

题目： 
Initially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes a circle, which means ...]]></description><category></category></item><item><title><![CDATA[LeetCode：461. Hamming Distance]]></title><link>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80143274</link><guid>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80143274</guid><author>SCUTJcfeng</author><pubDate>Sun, 29 Apr 2018 15:22:59 +0800</pubDate><description><![CDATA[链接： 
https://leetcode.com/problems/hamming-distance/description/

题目：

The Hamming distance between two integers is the number of positions at which the corresponding bits are different.

Given two in...]]></description><category></category></item><item><title><![CDATA[LeetCode：804. Unique Morse Code Words]]></title><link>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80141986</link><guid>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80141986</guid><author>SCUTJcfeng</author><pubDate>Sun, 29 Apr 2018 11:33:27 +0800</pubDate><description><![CDATA[链接： 
https://leetcode.com/problems/unique-morse-code-words/description/

题目： 
International Morse Code defines a standard encoding where each letter is mapped to a series of dots and dashes, as follow...]]></description><category></category></item><item><title><![CDATA[LeetCode：626. Exchange Seats]]></title><link>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80141691</link><guid>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80141691</guid><author>SCUTJcfeng</author><pubDate>Sun, 29 Apr 2018 10:53:23 +0800</pubDate><description><![CDATA[链接： 
https://leetcode.com/problems/exchange-seats/description/

题目： 
Mary is a teacher in a middle school and she has a table seat storing students’ names and their corresponding seat ids.

The column...]]></description><category></category></item><item><title><![CDATA[Linux个人常用指令]]></title><link>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80101667</link><guid>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80101667</guid><author>SCUTJcfeng</author><pubDate>Thu, 26 Apr 2018 23:24:26 +0800</pubDate><description><![CDATA[前言

最近在Linux学习部署爬虫项目，部分Linux指令用的比较频繁，记下来待后续补充。



指令列表


后台运行任务 
格式：cd 目录路径 &amp;amp;&amp;amp; nohup 命令 &amp;gt;&amp;gt; 输出log目录 2&amp;gt;&amp;amp;1 &amp;amp; 
例子：cd ~/scrapyprojects/jdcomment/jdcomment &amp;amp;&amp;amp; nohup scrapy c...]]></description><category></category></item><item><title><![CDATA[Navicat连接阿里云Mysql]]></title><link>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80077394</link><guid>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80077394</guid><author>SCUTJcfeng</author><pubDate>Wed, 25 Apr 2018 12:05:31 +0800</pubDate><description><![CDATA[





注意： 
1. 不能用Navicat自带的连接阿里云云数据库Mysql版连接数据库，用普通的Mysql连接即可； 
2. 主机和端口选择数据库外网地址和外网端口，用户名和密码填写数据库的用户名和密码； 
3. SSL和其它保持默认不需要填写； 
4. Navicat版本号：12.0.18 64位。...]]></description><category></category></item><item><title><![CDATA[插入Json数据到Mysql]]></title><link>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80072356</link><guid>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80072356</guid><author>SCUTJcfeng</author><pubDate>Tue, 24 Apr 2018 23:06:44 +0800</pubDate><description><![CDATA[前言

MySQL 5.7已经原生支持JSON格式，我在插入Json数据的时候出错了，出错的过程记录一下。





过程


错误：Invalid JSON text: &quot;Invalid escape character in string.&quot; at position...
分析：原来是数据自带了'\r\n'这样的换行符号。
用replace()替换掉对应的转义字符。
延伸：escape cha...]]></description><category></category></item><item><title><![CDATA[Python爬虫云服务器搭建系列之二：环境搭建]]></title><link>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80071018</link><guid>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80071018</guid><author>SCUTJcfeng</author><pubDate>Tue, 24 Apr 2018 21:27:01 +0800</pubDate><description><![CDATA[前言

上篇在这里： Python爬虫云服务器搭建系列之一：环境搭建

本篇主要介绍阿里云的云服务器ECS和云数据库EDS，先贴配置图吧： 
 




0x00：搭建过程

在上一篇文章已经介绍了云服务器ECS的登陆和部分爬虫模块的安装，现在继续：


网页端登陆控制台，到左侧选择云服务器RDS版，点击实例id，根据提示创建用户（因为只能创建这一个用户，所以我的截图没有这个提示）； 

点击数据...]]></description><category></category></item><item><title><![CDATA[Python爬虫云服务器搭建系列之一：环境搭建]]></title><link>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80062460</link><guid>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80062460</guid><author>SCUTJcfeng</author><pubDate>Tue, 24 Apr 2018 11:47:08 +0800</pubDate><description><![CDATA[简介

本文所用到的云服务器是阿里云：Ubuntu 16.04 64位。



0x00：创建实例并启动服务器

本节跳过



0x01：登陆服务器

工具：putty 
安装putty后输入ip和port（默认22），连接类型选择SSH（默认），保存save session，下次直接进入。 
完了后点击open 
 
输入账号密码： 
 
账号默认为root，密码可以到网页端ecs实例-更多-...]]></description><category></category></item><item><title><![CDATA[Scrapy-redis学习系列之一：初识scrapy-redis]]></title><link>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80054017</link><guid>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80054017</guid><author>SCUTJcfeng</author><pubDate>Mon, 23 Apr 2018 19:36:33 +0800</pubDate><description><![CDATA[Scrapy-redis学习系列之一：初识scrapy-redis





写在最前

本项目Github地址：https://github.com/SCUTJcfeng/Scrapy-redis-Projects

一、scarpy-redis介绍

scrapy-reids官方介绍的三个特性如下：


Distributed crawling/scraping（分布式爬虫）


You ca...]]></description><category></category></item><item><title><![CDATA[Redis在Windows下创建多个实例（2018最新）]]></title><link>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80044576</link><guid>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80044576</guid><author>SCUTJcfeng</author><pubDate>Sun, 22 Apr 2018 23:10:45 +0800</pubDate><description><![CDATA[Redis在Windows下创建多个实例（2018最新）





前言

网上看了很多关于单机创建Redis多实例的文章，都是不适用的（可能只适用以前的版本），经过自己一翻琢磨，终于琢磨出来了，现在记录一下。



一、版本

Windows10 64位，Redis-x64-3.2.100.msi



二、步骤

思路：将Redis进程添加到Windows服务中。（以我自身举例，创建一个端口为...]]></description><category></category></item><item><title><![CDATA[Ubuntu Recovery下卸载Kodi]]></title><link>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80038168</link><guid>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80038168</guid><author>SCUTJcfeng</author><pubDate>Sun, 22 Apr 2018 13:14:47 +0800</pubDate><description><![CDATA[Ubuntu Recovery下卸载Kodi

事情源于我今天在Ubuntu自带的软件应用下载安装了Kodi，重启电脑后直接进入Kodi，即kodi已经替代了桌面，没法进入桌面怎么玩？所以我们需要在Recovery下卸载Kodi。



1、

reboot，在grub引导界面进入Ubuntu Recovery模式，再进入root命令行界面。



2、

输入mount -o remount,r...]]></description><category></category></item><item><title><![CDATA[Redis在Ubuntu和Windows下的安装]]></title><link>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80035121</link><guid>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80035121</guid><author>SCUTJcfeng</author><pubDate>Sat, 21 Apr 2018 23:48:46 +0800</pubDate><description><![CDATA[Redis在Ubuntu和Windows下的安装过程



前言

今天（2018年4月21日），我在我的Ubuntu 17.10和Windows 10双系统都安装上了Redis，简单记录一下过程。





一、windows下的安装：


其实，redis官方最新版4.0.9已经不支持Windows，现在在微软的Github仓库上能找到最新的就是3.2.100，这是微软维护的最后一个版本。进入...]]></description><category></category></item><item><title><![CDATA[LeetCode：771. Jewels and Stones]]></title><link>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80025369</link><guid>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80025369</guid><author>SCUTJcfeng</author><pubDate>Fri, 20 Apr 2018 23:24:40 +0800</pubDate><description><![CDATA[题目： 
You’re given strings J representing the types of stones that are jewels, and S representing the stones you have.  Each character in S is a type of stone you have.  You want to know how many of th...]]></description><category></category></item><item><title><![CDATA[LeetCode：196. Delete Duplicate Emails]]></title><link>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80024492</link><guid>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80024492</guid><author>SCUTJcfeng</author><pubDate>Fri, 20 Apr 2018 21:44:25 +0800</pubDate><description><![CDATA[题目： 
Write a SQL query to delete all duplicate email entries in a table named Person, keeping only unique emails based on its smallest Id.

+—-+——————+ 
| Id | Email            | 
+—-+——————+ 
| 1  | ...]]></description><category></category></item><item><title><![CDATA[LeetCode：596. Classes More Than 5 Students]]></title><link>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80022200</link><guid>https://blog.youkuaiyun.com/SCUTJcfeng/article/details/80022200</guid><author>SCUTJcfeng</author><pubDate>Fri, 20 Apr 2018 17:53:54 +0800</pubDate><description><![CDATA[题目： 
There is a table courses with columns: student and class

Please list out all classes which have more than or equal to 5 students.

For example, the table:

+———+————+ 
| student | class      | 
...]]></description><category></category></item></channel></rss>