discuz论坛抓取煎蛋网图片 脚本

2017年8月17日 0 条评论 1.34k 次阅读 0 人点赞

暂时只有win批处理版本,输入网址,自动转成discuz论坛纯文本格式,输入网址之后直接粘贴即可。

需要win curl.exe支持,自行下载,放入C:\windows\即可

@echo off
title discuz煎蛋图片抓取
setlocal enabledelayedexpansion
:url_
cls
echo.
echo 粘贴煎蛋图网址,比如“http://jandan.net/ooxx/page-262#comments”
echo 然后打开发表文章页面,点击 纯文本,然后粘贴即可
echo.
set/p url_=煎蛋抓取网址:
if "%url_%"=="" goto :url_
cd. > test123
cd. > test321
curl %url_% > test123
set "b= "
for /f "tokens=9 delims== " %%i in ('type test123 ^| find "sinaimg.cn/"') do echo %%i | find "sinaimg" >> test321
for /f "tokens=*" %%i in ('type test321') do (
	set "a=%%i"
	echo  >> testok
)
CLIP < testok
del/q/f test123 test321 testok
echo 抓取成功!
ping 127.1 -n >nul 2>nul
goto :url_

Sevenfal

这个人太懒什么东西都没留下

文章评论(0)