OSSEZ-21 削减 Twitter 的发布速度,避免被封号

This commit is contained in:
YuCheng Hu 2017-10-03 10:04:28 -04:00
parent 2f3c77e85c
commit d4adaa5405
1 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ public class VisaImporter extends DataCrawl {
confAppLastRuntime = ConfFactory.get(CONF_TWITTER_COUNT);
if (confAppLastRuntime != null) {
confAppLastRuntime.setValue(String.valueOf(twitterCount + 3));
confAppLastRuntime.setValue(String.valueOf(twitterCount + 1));
ConfFactory.save(confAppLastRuntime);
}
@ -343,7 +343,7 @@ public class VisaImporter extends DataCrawl {
publishTwitter(visaStatusLog);
}
for (int i = twitterCount; i < twitterCount + 5; i++) {
for (int i = twitterCount; i < twitterCount + 3; i++) {
VisaStatusLog visaStatusLog = LogFactory.getVisaStatusLog(NumberUtils.toLong(String.valueOf(i)));
if (visaStatusLog != null) {
publishTwitter(visaStatusLog);