Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Fred Wang kenshinji

🎯
Focusing
Block or report user

Report or block kenshinji

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kenshinji
kenshinji / readme.md
Created Apr 5, 2019 — forked from YieldNull/readme.md
爬取新浪微博中指定用户所有相册图片,并保存到本地
View readme.md

功能

给定用户的ID(微相册的数字ID,非昵称),下载用户相册中所有图片到本地

所需模块

rsa,threadpool

登陆

请先更改login_weibo中的用户名及密码

用法

View sfn.js
const Nightmare = require('nightmare');
const nightmare = Nightmare({show:true});
//nightmare.useragent('Headless')
nightmare.cookies.set({
url: 'https://mastering-phoenix-framework-federicoesparza.c9users.io:8081/',
name: 'c9.live.user.click-through',
value: 'ok',
path: '/',
secure: true,
@kenshinji
kenshinji / flatten.rb
Created Sep 22, 2017
flatten an array in ruby
View flatten.rb
def flattify(array)
array.each_with_object([]) do |element, flattened|
flattened.push *(element.is_a?(Array) ? flattify(element) : element)
end
end
You can’t perform that action at this time.