perloader

wordpress 音乐播放器

我这边有个短代码实现的播放器功能。 1.下载 http://www.douban.com/swf/player.swf 这个播放器(请使用迅雷下载) 2.编辑主题的functions.php文件。将下面的代码加入到其中 function doubanplayer($atts, $content=null){ extract(shortcode_atts(array(“auto”=>’0′),$atts)); return ‘<embed src=”‘.get_bloginfo(“template_url”).’/player.swf?url=’.$content.’&amp;autoplay=’.$auto.'” type=”application/x-shockwave-flash” wmode=”transparent” allowscriptaccess=”always” width=”400″ height=”30″>’; } add_shortcode(‘music’,’doubanplayer’); 3.调用 写文章的时候用HTML模式插入下面这一段 [music]http://xxx.com/xxx.mp3[/music] (默认不会自动播放的。如果想要自动播放的话可以用下面的代码) [music auto=1]http://xxx.com/xxx.mp3[/music] (这个可以自动播放)

.

Read more

如何用Python抓抖音上的小姐姐

https://segmentfault.com/a/1190000016636062 本文的重点就在于 如何获取手机 App 发出的请求 。 这里,我们要用的工具是 Fiddler 。它是一个较成熟的免费抓包工具。可以抓取网页、桌面软件、手机 App 的网络请求,并可以运行在 Windows、Mac、Linux 平台上,支持 iOS 和 Android。(虽说都支持,但强烈建议 Windows + Android ,后面我会有吐槽) 搜索一下 fiddler 很容易找到它们的官网 https://www.telerik.com/fiddler,点击 download 下载即可(有个表格随便填下)。 Windows 下载后正常安装。 安装好工具后,需要做一些必要配置才能抓包。 1. Fiddler 配置 设置允许抓取 HTTPS 信息包。打开下载好的 fiddler,找到 Tools – > Options,然后在 HTTPS 的工具栏下勾选 Decrpt HTTPS traffic ,在新弹出的选项栏下勾选 Ignore server certificate errors 。这样,fiddler 就会抓取到 HTTPS 的信息包。   […]

.

Read more

WordPress MySQL去除重复文章

按照某个键值将最小ID创建新表储存: create table tmp_table as select min(id) from wp_posts group by post_title; 然后将储存在tmp中的id与原表对照,将原表中不存在与tmp中的id删除: delete from wp_posts where id not in (select * from tmp_table); py脚本 squ=[“create table tmp_table as SELECT ID FROM `wp_posts` WHERE `post_name` REGEXP ‘-2$’;”,”delete from wp_posts where id in (select * from tmp_table);”,”DROP TABLE tmp_table;”] for sqa in squ: try: db = […]

.

Read more

Plati是一个数字商品销售平台: 有各种面额的虚拟卡,地址:https://www.plati.com/cat/prepaid-debit-cards/21675   国外虚拟卡\预付卡申请-可用于国外网赚与VPS主机试用   Cash 预付卡: https://cash.me Monzo 虚拟卡 APP: https://monzo.com bitwala 预付卡: https://www.bitwala.com/card/ 日本 Vandle 虚拟卡: https://vandle.jp/ https://www.mobal.com.cn/

.

Read more

Docker

Docker可以认为是vmware或者virtualbox 镜像可以认为是 xxx.iso 容器可以认为是 virtualbox运行xxx.iso后的系统 查看容器 docker ps -a root@li1041-243:~# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES c3686838ba3d danielguerra/ubuntu-xrdp “/usr/bin/docker-ent…” 6 hours ago Up 6 hours 0.0.0.0:3389->3389/tcp, 9001/tcp, 0.0.0.0:2222->22/tcp uxrdp 进入已经停止运行的容器 docker start container ID docker attach container ID 把修改或运行后的容器再打包为镜像(ISO) 退出容器 查看容器 docker ps -a 把容器打成镜像sudo docker commit -p c3686838ba3d vpsxyz/xrdp:20190218 c3686838ba3d […]

.

Read more

python 识别简单图片里面的文字

from PIL import Image import pytesseract text=pytesseract.image_to_string(Image.open(path + wjjname+’/’+jp)) #print(text) 安装: https://digi.bib.uni-mannheim.de/tesseract/tesseract-ocr-setup-4.00.00dev.exe 并将安装目录:C:\Program Files (x86)\Tesseract-OCR 添加至 C:\Python35\Lib\site-packages\pytesseract\pytesseract.py 文件 如下: # CHANGE THIS IF TESSERACT IS NOT IN YOUR PATH, OR IS NAMED DIFFERENTLY tesseract_cmd = ‘tesseract’ tesseract_cmd = ‘C:/Program Files (x86)/Tesseract-OCR/tesseract.exe’

.

Read more

7O DD安装win10

进入救援模式,选ubuntu, sudo su wget -O- ‘https://mirror.joodle.nl/WindowsServer2016Evaluation-Template.gz’ | gunzip | dd of=/dev/sda Username: Administrator Password: Password147 Windows Server 2016从Evaluation评估版转换成正式版 开始—运行—CMD(管理员模式); DISM /online /Set-Edition:ServerStandard /ProductKey:WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY /AcceptEula 重启 wget -O- ‘https://mirror.joodle.nl/window10-2018-12-x64.gz’ | gunzip | dd of=/dev/sda Username: User Password: Abc123 Please change the password as soon as you login. Install drivers from c:\drivers then delete the drivers folder. […]

.

Read more

selenium语法

http://www.lianschedule.site/457 https://www.zybuluo.com/mwumli/note/222253 编码 #coding=utf-8 # coding=gbk 导入开发包 from selenium import webdriver 获得浏览器对象 driver=webdriver.Firefox() driver=webdriver.Ie() driver=webdriver.Chrome() 定位 find_element_by_id(“xx”) find_element_by_name(“xx”) find_element_by_class_name(“xx”) find_element_by_tag_name(“xx”) find_element_by_link_text(“xx”) find_element_by_parial_link_text(“xx”) find_element_by_xpath(“/html/body/div/div[2]/div/form/span/input”) find_element_by_xpath(“//input[@id=’xx’]”) find_element_by_xpath(“//input[@name=’xx’]”) find_element_by_xpath(“//class[@class=’xx’]”) find_element_by_xpath(“//*[@id=’xx’]”)//不仅id,name,class其他属性皆可 find_element_by_xpath(“//span[@id=’xx’]/input”) find_element_by_xpath(“//input[@id=’xx’ and @class=’xx’]”) find_element_by_css_selector(“#xx”)//id属性find_element_by_css_selector(“.xxx”)//class属性 find_element_by_css_selector(“xxx”)//标签名 find_element_by_css_selector(“span>input”)//父子关系 find_element_by_css_selector(“[name=xxx]”)//不仅name属性,其他属性皆可 find_element_by_css_selector(“span#a>input#b”)//组合定位 定位一组元素 find_elements_by_id(“xx”) find_elements_by_name(“xx”) find_elements_by_class_name(“xx”) find_elements_by_tag_name(“xx”) find_elements_by_link_text(“xx”) find_elements_by_parial_link_text(“xx”) find_elements_by_xpath(“/html/body/div/div[2]/div/form/span/input”) find_elements_by_xpath(“//input[@id=’xx’]”) find_elements_by_xpath(“//input[@name=’xx’]”) find_elements_by_xpath(“//class[@class=’xx’]”) find_elements_by_xpath(“//*[@id=’xx’]”)//不仅id,name,class其他属性皆可 find_elements_by_xpath(“//span[@id=’xx’]/input”) find_elements_by_xpath(“//input[@id=’xx’ and @class=’xx’]”) find_elements_by_css_selector(“#xx”)//id属性find_elements_by_css_selector(“.xxx”)//class属性 find_elements_by_css_selector(“xxx”)//标签名 find_elements_by_css_selector(“span>input”)//父子关系 […]

.

Read more

FINANCE(23)/FINANCE(19)>0.1 AND FINANCE(42)>365 净资产收益率=净利润/净资产,净资产收益率在10%以上,上市一年以上

.

Read more

linux 图形化桌面工具

debian 7 x64 ubuntu 16 x64 apt-get update apt-get install xorg xrdp lxde firefox   然后就可以用WIN的远程桌面连接机子的3389了,用户名是root

.

Read more
xyz