爬虫使用防盗链
function doDecrypt (pwd, onError) {
console.log('in doDecrypt');
const txt = document.getElementById('enc_content').innerHTML;
let plantext;
try {
const bytes = CryptoJS.AES.decrypt(txt, pwd);
var plaintext = bytes.toString(CryptoJS.enc.Utf8);
} catch(err) {
if(onError) {
onError(err);
}
return;
}
document.getElementById('enc_content').innerHTML = plaintext;
document.getElementById('enc_content').style.display = 'block';
document.getElementById('enc_passwd').style.display ...
爬虫处理cookie
使用session访问链接的时候保持会话,常用于网站登录
使用bs4爬取图片
使用bs4解析页面爬取网站中的图片
爬取豆瓣豆瓣电影TOP250
使用re解析爬取豆瓣电影TOP250电影数据
第7章-指针
C语言入门经典第七章笔记
第6章-字符串
C语言入门经典第六章笔记
Python中包和模块的区别
Python中包/文件夹/库/模块的区别
第5章-数组
C语言入门经典第四章笔记
第4章-循环结构
C语言入门经典第四章笔记
第3章-条件判断
C语言入门经典第三章笔记