• This repository has been archived on 08/Jul/2024
  • Stars
    star
    122
  • Rank 292,031 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 4 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

一个使用Electron-Vue编写的免登录下载微博图片的桌面爬虫应用

weibo-pic-downloader

一个使用Electron-Vue + ElementUI构建的免登录下载微博图片的桌面爬虫应用;

声明

本项目已不再维护,最新版Electron已无法编译此项目!

如果有其他需要,请Fork本仓库,或直接修改本仓库代码自行实现!

具体实现逻辑,见:

安装方法

① 压缩包方式安装

下载右侧对应平台的Release包,解压缩即可;

② 源码编译

克隆本项目:

git clone [email protected]:JasonkayZK/weiboPicDownloader.git

使用yarn或npm安装依赖:

npm install
或
yarn install

编译本项目:

# 编译对应平台:
npm run build

也可以修改package.json中的配置,如在scripts中添加一条:

{
  "scripts": {
    "build": "node .electron-vue/build.js && electron-builder",
    "build:win": "node .electron-vue/build.js && electron-builder --win --x64",
  }
 }

来使用npm run build:win编译win平台下的64位版本;

更多编译选项(如跨平台编译),见:

Vue CLI Plugin Electron Builder官方文档:

关于Mac环境下编译:

在Mac环境下编译可能会出现类似于下面的错误:

Can't locate Mac/Memory.pm in @INC (you may need to install the Mac::Memory module)

这是生成dmg包出现的问题,可以修改package.json删除:

"dmg": {
    "contents": [
        {
            "x": 410,
            "y": 150,
            "type": "link",
            "path": "/Applications"
        },
        {
            "x": 130,
            "y": 150,
            "type": "file"
        }
    ]
}

并在mac中添加target

"mac": {
    "icon": "build/icons/icon.ico",
    "target": "zip"
}

即可!

其他说明:

编译时可能会出现icon大小不符(至少为256x256或512x512)的问题;

源码的build/icons下提供了部分icon,可以直接修改package.json中的icon属性,指定你自己的icon图标;

③ 本地调试

使用yarn或npm安装依赖完成后,使用下面的命令进入本地开发调试:

npm run dev

使用方法

① 运行并填写信息

双击运行WeiboPicDownloader.exe,界面如下图:

weiboPicDownloader_1.png

填入微博用户UID,不知道UID的可以Google搜索,或是参考下面的方法:

① url路径获取

如果用户没有设置个性域名,则url中就包括了其userID,如:

https://weibo.com/u/6404087010?is_all=1

其中6404087010就是用户的userId;

如下图所示:

userId_1.png

② 网页源代码获取

有些时候用户设置了个性域名,例如:

https://weibo.com/yangmiblog?is_all=1

此时需要在网页源代码中查找userId:

在当前用户页面按下F12(或其他可以打开浏览器控制台的快捷键)打开控制台;

按下Ctrl + F进入搜索,输入uid,即可查找到用户的userId,如下图:

userId_2.png

输入用户ID,并选择下载日期区间后点击立即下载;


② 等待爬虫

点击立即下载后,程序会进行爬虫,并报告爬虫进度;


③ 选择保存路径

爬虫完成后,会弹出保存窗口,选择图片保存的路径即可开始下载;

weiboPicDownloader_2.png

下载过程中会有进度条显示,如下图:

weiboPicDownloader_3.png


④ 下载完成

最终下载完成即可在保存目录找到你下载的图片啦!

weiboPicDownloader_4.png

更多说明

本项目采用MIT许可,大家可以在本代码的基础之上自由的做二次开发!

觉得好用的可以点个star~

觉得不好的也可以提出你的issue~

相关博文:

More Repositories

1

typescript-learn

A repo to learn ts.
TypeScript
373
star
2

bark-cli

A simple terminal tool for bark
Go
63
star
3

go-learn

A repository for learning Golang
Go
40
star
4

docker-repo

A repository stores some dockerfiles or docker-compose files for quickly starting service or service cluster.
Shell
38
star
5

cpp-learn

A repo to learn c++
CMake
30
star
6

mock-protobuf.js

A repository to generate the fake json data from protobuf.
TypeScript
23
star
7

rust-learn

A repo to learn rust.
Makefile
22
star
8

consistent-hashing-demo

A demo to show clearly how Consistent Hashing works.
Go
22
star
9

jasonkayzk

Python
12
star
10

JasonkayZK.github.io

张小凯的个人博客
JavaScript
12
star
11

netty_redis_zookeeper

《netty+redis+zookeeper实战》附带代码
11
star
12

Java_Samples

This repo stores some samples such as Java-RPC sampls, Java-MQ samples, Java-Reflecltion samples and so on.
10
star
13

mini-redis

A mini-redis learn from tokio.
Rust
8
star
14

my_docker

A repo to write docker step by step, a notebook for 《自己动手写Docker》
Go
7
star
15

go_downloader

A multiple-thread & resumable downloader written by Go
Go
7
star
16

gopher-icons

A repo to collect gopher icons.
Go
7
star
17

kubernetes-learn

A repo to learn kubernetes.
5
star
18

ttmall

A mall
TSQL
5
star
19

predictor

A repository for autoregressive prediction via LSTM or some other ANN.
Python
5
star
20

web-chat

A chat web application written by Golang.
Go
4
star
21

DeviceListener

一个记录每日鼠标键盘使用次数的python小程序(支持多操作系统)
Python
4
star
22

rust-template

A rust project template for general purpose.
Rust
4
star
23

go-assembly

A repo to learn WebAssemly in Golang
3
star
24

pool

A high performance goroutine pool written by Golang.
Go
3
star
25

go-spa-demo

A binary executable SPA(Single Page Application) demo built by Golang
JavaScript
3
star
26

SQL_Learn

一个学习SQL的仓库
TSQL
3
star
27

sync-onetab

A tool to sync data in onetab plugin.
JavaScript
2
star
28

node_learn

A repo for learning node.js
JavaScript
2
star
29

Java_Algorithm

A repository for Java Algorithm
Java
2
star
30

cpp-concurrency-in-action

A repo to learn concurrency in C++
C++
2
star
31

boost-rs

A library for boosting your develop productivity on Rust.
Rust
2
star
32

qt-learn

A repo to learn Qt
C++
2
star
33

mark_sweep_gc

A simple demo for mark sweep gc wittern in C++
C++
2
star
34

EZShare

一个用于在互联网分享文件的项目
Java
2
star
35

Spring_All

Spring全家桶的学习
Java
2
star
36

merkle-trie-clock

A merkle-trie-based clock for CRDTs.
Rust
2
star
37

mini-redis-java

A mini-redis to learn netty just as tokio tutorial in Rust.
Java
2
star
38

assembly_learn

A repo to learn assembly language
Assembly
1
star
39

re-tinykv

Yet another tinykv database.
Shell
1
star
40

kotlin_learn

A repo to learn kotlin.
Kotlin
1
star
41

cos-gallery

A gallery based on Tencent COS.
JavaScript
1
star
42

java-all

A repository to re-organize Java.
Java
1
star
43

cs-in-cpp

Re-learning computer science in C++
C++
1
star
44

chrome-extension-learn

A repo to learn writing chrome extension.
HTML
1
star
45

jutil

A tool library for Java
Java
1
star
46

async

A repository to help you build async application
Go
1
star
47

self-cultivation-in-programmer

A repo to note the book 《程序员的自我修养》
CMake
1
star
48

ansible-learn

A repo to learn ansible.
Dockerfile
1
star
49

shazam

A demo project that use Shazam algorithm to generate voice fingerprint and recognize voice.
C
1
star
50

go2source

A repo to learn the source code of golang
1
star
51

sql-learn

A repo to learn writing SQL.
1
star
52

sync

A repo to provide data sync ability via tonic.
Rust
1
star
53

java_learn

A repo to store java note
Java
1
star
54

istio-learn

A repo to learn istio.
1
star
55

Linux_Shell

存放一些学习Linux Shell命令的代码
Shell
1
star
56

myLove

JavaScript
1
star
57

ruby-learn

A repo to learn ruby.
Ruby
1
star
58

cs-in-go

Learn computer science in Golang.
Go
1
star
59

electron_learn

A repo to learn electron, GLHF!
JavaScript
1
star
60

hub_sync_action

A github-action to sync code between github and gitee.
1
star
61

tauri-learn

A repo to learn tauri.
Rust
1
star
62

img2txt-rs

A cli to generate text image.
Rust
1
star
63

react_learn

A repo to learn React framework.
JavaScript
1
star
64

jvm-rs

A JVM implemented in rust.
Rust
1
star
65

synchronizer

A crdt-based library using for synchronizing data between multiple devices.
Makefile
1
star
66

media-sniper

A media search tool implemented with Tkinter.
Python
1
star
67

frontend

A repo to store basic frontend source.
1
star
68

easy-utils

A util repository written in rust
Rust
1
star
69

fts-demo

A Full-Text-Searching engine demo
Go
1
star
70

lua-learn

A branch to learn lua.
Lua
1
star
71

db_tutorial

A simple database which is written by C++ and modeled off sqlite.
CMake
1
star
72

JavaScript_Learn

学习JS的相关代码
HTML
1
star
73

sync_life

A repo to sync data from other platform, such as ManicTime, WakaTime.
Python
1
star
74

media-downloader

A cli-application for downloading media from the internet written in Go.
1
star
75

Java_Concurrency

A repo for learning java concurrency.
Java
1
star
76

ruankao

A repo to organize China qualification certificate of Computer and Software Technology Proficiency.
1
star
77

Scala_Learn

一个学习Scala基础的仓库
Scala
1
star
78

go_traps_and_pitfalls

A repo to collect traps and pitfalls in golang
Go
1
star
79

android_learn

A repo to learn Andriod.
Kotlin
1
star
80

yolo-learn

A demo to learn YOLO based on ultralytics.
Python
1
star
81

layerdb

A open source kv database in rust.
Rust
1
star
82

python-learn

上传一些有关Python的学习和项目代码
Python
1
star
83

my-leetcode

A repo to solve leetcode problem
1
star
84

blog_static

一个存放github静态资源的仓库!
JavaScript
1
star
85

raft-demo

A demo for raft application.
Makefile
1
star
86

slime-db

A CRDTs based database.
Makefile
1
star
87

csharp-learn

A repo to learn c#.
1
star
88

p2panda-tools

A toolset for p2panda, such as interact nodes, migration etc.
Makefile
1
star
89

vue-learn

A repo to learn vue.
JavaScript
1
star
90

db-learn

A repo to learn database
PLpgSQL
1
star