diff --git a/lib/kotlin-reflect.jar b/lib/kotlin-reflect.jar index 745293a..b44caf1 100644 Binary files a/lib/kotlin-reflect.jar and b/lib/kotlin-reflect.jar differ diff --git a/lib/kotlin-stdlib-jdk7.jar b/lib/kotlin-stdlib-jdk7.jar index 82b8898..fb68700 100644 Binary files a/lib/kotlin-stdlib-jdk7.jar and b/lib/kotlin-stdlib-jdk7.jar differ diff --git a/lib/kotlin-stdlib-jdk8.jar b/lib/kotlin-stdlib-jdk8.jar index d6249d2..fc61ee4 100644 Binary files a/lib/kotlin-stdlib-jdk8.jar and b/lib/kotlin-stdlib-jdk8.jar differ diff --git a/lib/kotlin-stdlib.jar b/lib/kotlin-stdlib.jar index 284426d..779e622 100644 Binary files a/lib/kotlin-stdlib.jar and b/lib/kotlin-stdlib.jar differ diff --git a/lib/kotlin-test.jar b/lib/kotlin-test.jar index d4ba207..c64b245 100644 Binary files a/lib/kotlin-test.jar and b/lib/kotlin-test.jar differ diff --git a/src/com/renyu/rssreader/js/JSMain.kt b/src/com/renyu/rssreader/js/JSMain.kt index 1c8b595..63043f0 100644 --- a/src/com/renyu/rssreader/js/JSMain.kt +++ b/src/com/renyu/rssreader/js/JSMain.kt @@ -12,8 +12,8 @@ import java.util.concurrent.TimeUnit fun main(args: Array) { - // "d79a6385bded" "35da7ac56db8" - val urlList: Array = arrayOf("d1591c322c89", "5139d555c94d", "58b4c20abf2f", "3fde3b545a35", "ddfd0f9bb992", "38d96caffb2f", "7d70f1739deb", "98aaef9f5d2f", "0dc880a2c73c", "383594e9265f") + // "38d96caffb2f" "7d70f1739deb" "98aaef9f5d2f" + val urlList: Array = arrayOf("3fde3b545a35", "NEt52a", "58b4c20abf2f", "d1591c322c89", "5139d555c94d", "ddfd0f9bb992", "0dc880a2c73c", "383594e9265f") val scheduledExecutorService = Executors.newScheduledThreadPool(1) scheduledExecutorService.scheduleAtFixedRate({ @@ -33,9 +33,9 @@ fun main(args: Array) { val author_document: Document = Jsoup.parse(element.toString()) val avatar: String = "http:"+author_document.getElementsByTag("img").attr("src") avatars.add(avatar) - val blue_link_element: Elements = author_document.getElementsByClass("blue-link") - val blue_link_document: Document = Jsoup.parse(blue_link_element.toString()) - val name = (blue_link_document.childNodes()[0] as Element).text() + val nickname_element: Elements = author_document.getElementsByClass("nickname") + val nickname_document: Document = Jsoup.parse(nickname_element.toString()) + val name = (nickname_document.childNodes()[0] as Element).text() names.add(name) } val title_element: Elements = note_list_document.getElementsByClass("title") diff --git a/src/com/renyu/rssreader/utils/HttpUtils.java b/src/com/renyu/rssreader/utils/HttpUtils.java index 583bb22..ec8cdbc 100644 --- a/src/com/renyu/rssreader/utils/HttpUtils.java +++ b/src/com/renyu/rssreader/utils/HttpUtils.java @@ -30,7 +30,7 @@ public static HttpUtils getIntance() { private HttpUtils() { OkHttpClient.Builder builder=new OkHttpClient.Builder(); - builder.connectTimeout(20, TimeUnit.SECONDS).readTimeout(30, TimeUnit.SECONDS).writeTimeout(30, TimeUnit.SECONDS); + builder.connectTimeout(60, TimeUnit.SECONDS).readTimeout(60, TimeUnit.SECONDS).writeTimeout(60, TimeUnit.SECONDS); HttpsUtils.SSLParams sslParams=HttpsUtils.getSslSocketFactory(null, null, null); builder.hostnameVerifier((s, sslSession) -> true).sslSocketFactory(sslParams.sSLSocketFactory, sslParams.trustManager); client=builder.build(); diff --git a/src/com/renyu/rssreader/wx/WXMain.java b/src/com/renyu/rssreader/wx/WXMain.java index 8377f74..b07fa59 100644 --- a/src/com/renyu/rssreader/wx/WXMain.java +++ b/src/com/renyu/rssreader/wx/WXMain.java @@ -22,19 +22,6 @@ public class WXMain { public static void main(String[] args) { String[] names={ - "互扯程序", - "non-famous-coder", -// "QQ空间开发团队", - "何俊林", -// "Android群英传", - "开发者技术前线", - "刘桂林", - "code小生", - "伯特说", - "KotlinX", - "码个蛋", - "秦子帅", - "鸿洋", "郭霖", "安卓开发精选", "Android编程精选", @@ -43,7 +30,7 @@ public static void main(String[] args) { "程序员小乐", "架构师必备", // "HenCoder", - "clock_life", +// "clock_life", // "Android程序员", "androidtrending", "前端之巅", @@ -53,8 +40,21 @@ public static void main(String[] args) { "沪江技术", "刘望舒", "终端研发部", + "码个蛋", "Android技术之家", - "淘宝技术" + "淘宝技术", + "互扯程序", + "Android群英传", + "non-famous-coder", +// "QQ空间开发团队", + "何俊林", + "开发者技术前线", +// "刘桂林", + "code小生", + "伯特说", + "KotlinX", + "秦子帅", + "鸿洋" }; ExecutorService uploadService= Executors.newFixedThreadPool(1); @@ -75,9 +75,9 @@ public static void main(String[] args) { String startSearchinfo="uigs=\"account_image_0\" href=\""; String endSearchinfo="\">"; String searchValue=HttpUtils.getIntance().get(searchUrl, null); - if (searchValue.indexOf(startSearchinfo)!=-1) { + if (searchValue.contains(startSearchinfo)) { searchValue=searchValue.substring(searchValue.indexOf(startSearchinfo)+startSearchinfo.length()); - if (searchValue.indexOf(endSearchinfo)!=-1) { + if (searchValue.contains(endSearchinfo)) { searchValue=searchValue.substring(0, searchValue.indexOf(endSearchinfo)); } }