Commit a9af9087 by [zhangzhiwei]

修改微信链接为分享链接

parent 4cc743b9
......@@ -208,7 +208,7 @@ public class WechatAritcleSearch {
for (Element element : elements) {
try {
title = element.select("div.txt-box").select("h3").text();
link = element.select("div.txt-box").select("h3 >a").attr("href");
link = element.select("div.txt-box").select("h3 >a").attr("data-share");
content = "";
if (element.select("p.txt-info").isEmpty()) {
content = element.select("p.txt-info").text();
......@@ -362,7 +362,7 @@ public class WechatAritcleSearch {
for (Element element : elements) {
try {
title = element.select("div.txt-box").select("h3").text();
link = element.select("div.txt-box").select("h3 >a").attr("href");
link = element.select("div.txt-box").select("h3 >a").attr("data-share");
content = "";
if (element.select("p.txt-info").isEmpty()) {
content = element.select("p.txt-info").text();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment