crawlers.publishers.iolNews.IOLNewsIsolezweCrawler Maven / Gradle / Ivy
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package crawlers.publishers.iolNews;
import crawlers.Logos;
import db.news.NewsSource;
import db.news.Tag;
/**
*
* @author zua
*/
public class IOLNewsIsolezweCrawler extends AbstactIOLNewsCrawler {
public IOLNewsIsolezweCrawler() {
}
@Override
public NewsSource getMySource() {
String sourceId = "iol-news-isolezwe";
String name = "IOL News Isolezwe";
String description = "";
String url = getUrl();
String category = "General";
String language = "sw";
String country = "ZA";
NewsSource source = new NewsSource();
source.setCategory(new Tag("geral"));
source.setCountry(country);
source.setDescription(description);
source.setLanguage(language);
source.setLogoUrl(Logos.getLogo(sourceId));
source.setName(name);
source.setSourceId(sourceId);
source.setUrl(url);
source.setLogoUrl(Logos.getLogo("iol-news-za"));
return source;
}
@Override
protected String getUrl() {
return "https://www.iol.co.za/isolezwe";
}
@Override
public void crawl() {
super.crawl(); //To change body of generated methods, choose Tools | Templates.
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy