JDownloader Community - Appwork GmbH

Thread Tools Display Modes
Old 04.01.2018, 18:36
famuex famuex is offline
Modem User
Join Date: Jan 2018
Posts: 1
Default Twitter crawler misses some tweets.


Recently I noticed that the Twitter crawler missed some videos and images for certain users.

After reviewing the source code and doing some tests, it turns out that this problem might be caused by the following regular expression: (in decrypter/TwitterCom.java line 228)

"li class=\"js\\-stream\\-item stream\\-item stream\\-item([^の]+?)ProfileTweet\\-actionCount"
which is used by the Twitter decrypter plugin to extract tweet entries. The intention of "([^の]+?)" part seems to be matching and capturing any HTML in each tweet. But since "の" is a common Japanese character, it eventually results in incorrectly missing the tweets which contain "の" in its description.

This problem can be reproduced on most Japanese twitters,
e.g. **External links are only visible to Support Staff****External links are only visible to Support Staff**

I tried fixing this problem by changing the "([^の]+?)" into "(.+?)" and by far it seems to work as expected.

Sorry for my poor English and thanks for your reading and help.
Reply With Quote
Old 24.01.2018, 14:28
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
Join Date: Mar 2009
Location: Germany
Posts: 76,480

Thanks for the bugreport. I've updated plugin according to your suggestion.
In case you wish source repo write account, please let us know at support@jdownloader.org
JD-Dev & Server-Admin
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 02:27.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.