forked from ThinkUpLLC/ThinkUp
-
Notifications
You must be signed in to change notification settings - Fork 0
ExpandURLsPlugin
eric011 edited this page Nov 6, 2014
·
2 revisions
extends Plugin implements CrawlerPlugin
This function will be called through Crawler interface. Flickr and Bitly API are managed by this function, not accessible to external classes, so they have different function names for expanding URL.
- get link_limit for a crawler;
- get flickr api key;
- call expandOriginalURLs;
- call acquireBitlyClickStats to get click counts;
for each links:
- call expandFlickrThumbnail if the URL comes from flic.kr;
- call expandURL;
- save results to database;
for each bitly link:
- call getBitlyLinkData;
- save the result;