use snippet save dom to excel
Posted c-x-a
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了use snippet save dom to excel相关的知识,希望对你有一定的参考价值。
1.打开贴吧
http://tieba.baidu.com/f?ie=utf-8&kw=python&fr=search
2.打开console执行下面命令
Array.prototype.toTable = function() {
var tab = ‘‘;
var th = ‘‘;
th = "<tr><th>" + keys(this[0]).join(‘</th><th>‘) + "</th></tr>";
this.forEach(function(a) {
tab += "<tr><td>" + values(a).join(‘</td><td>‘) + "</td></tr>";
});
copy("<table>" + th + tab + "<table>");
};
var ar = [];
$$(‘#thread_list > li > div > div.col2_right.j_threadlist_li_right > div.threadlist_lz.clearfix > div.threadlist_title.pull_left.j_th_tit > a‘)
.forEach(function(a) {
ar.push({ domain: a.href.split(‘/‘)[2], url: a.href, title: a.innerhtml});
});
ar.toTable();
3.打开一个excel,ctrl+v.自己看效果
以上是关于use snippet save dom to excel的主要内容,如果未能解决你的问题,请参考以下文章
matlabError using save Unable to write file pqfile.mat: permission denied.解决
Using Tensorflow SavedModel Format to Save and Do Predictions
解决service iptables save出错please try to use systemctl.
Using CLEAR_BLOCK To Prevent Save Confirmation Dialogs In Oracle Forms
How to Upload Long Text into SAP Using Excel Sheet and SAVE_TEXT Function Module