Crawler for BigData Collection
PM> Install-Package PlurCrawler
Members | Member Kind | Return Type |
---|---|---|
Vertification(string, string) | Method | void |
Search(GoogleCSESearchOption | Method | IEnumerable<GoogleCSESearchResult> |
ApiKey | ReadOnly Property | string |
SearchEngineId | ReadOnly Property | string |
IsVertification | ReadOnly Property | bool |
Name | Type |
---|---|
Query | string |
SearchCount | int |
Offset | int |
CountryCode | CountryRestrictCode |
DateRange | DateRange |
SplitWithDate | bool |
OutputServices | OutputFormat |
UseDateSearch | bool |
Members | Member Kind | Return Type |
---|---|---|
Vertification(string, string) | Method | void |
Search(GoogleCSESearchOption) | Method | IEnumerable<GoogleCSESearchResult> |
ApiKey | ReadOnly Property | string |
IsVertification | ReadOnly Property | bool |
Name | Type |
---|---|
Query | string |
SearchCount | int |
RegionCode | RegionCode |
DateRange | DateRange |
SplitWithDate | bool |
OutputServices | OutputFormat |
UseDateSearch | bool |
YoutubeSortOrder | YoutubeSortOrder? |
YoutubeVideoDuration | YoutubeVideoDuration? |
Members | Member Kind | Return Type |
---|---|---|
Search(TwitterCSESearchOption) | Method | IEnumerable<TwitterCSESearchResult> |
IsVertification | ReadOnly Property | bool |
Name | Type |
---|---|
Query | string |
SearchCount | int |
Offset | int |
Language | TwitterLanguage |
DateRange | DateRange |
SplitWithDate | bool |
OutputServices | OutputFormat |
IncludeRetweets | bool |
using PlurCrawler; // Base Namespace
using PlurCrawler.Search.Services.GoogleCSE; // Google CSE Namespace
using PlurCrawler.Search.Services.Youtube; // Youtube Namespace
using PlurCrawler.Search.Services.Twitter; // Twitter Namespace
var searcher = new YoutubeSearcher();
searcher.Vertification("YOUR-API-KEY");
var list = searcher.Search(new YoutubeSearchOption()
{
Query = "YOUR-QUERY",
YoutubeSortOrder = YoutubeSortOrder.Relevance,
SearchCount = 50,
RegionCode = PlurCrawler.Search.RegionCode.All,
SplitWithDate = false,
UseDateSearch = true,
YoutubeVideoDuration = YoutubeVideoDuration.Any
});
foreach (var itm in list){
Console.WriteLine($"【{itm.Title}】 - {itm.SimplifyDescription}");
Console.WriteLine();
}
TwitterCredentials credentials = new TwitterCredentials("YOUR-CONSUMER-KEY", "YOUR_CONSUMER-SECRET");
TwitterTokenizer tokenizer = new TwitterTokenizer();
Process.Start(tokenizer.GetURL(credentials));
Console.Write("Input PIN CODE : ");
string pinCode = Console.ReadLine();
credentials.InputPIN(pinCode);
tokenizer.CredentialsCertification(credentials);
var list = searcher.Search(new TwitterSearchOption(){
Query = "YOUR-QUERY",
SplitWithDate = false,
IncludeRetweets = true,
Language = TwitterLanguage.All,
SearchCount = 10
});
foreach(var itm in list)
{
Console.WriteLine($"【{itm.CreatorName}】 - {itm.SimplifyContent}");
Console.WriteLine();
}
var searcher = new GoogleCSESearcher("YOUR-CONSUMER-KEY", "YOUR_CONSUMER-SECRET");
var list = searcher.Search(new GoogleCSESearchOption(){
Query = "YOUR-QUERY",
SearchCount = 50,
CountryCode = PlurCrawler.Search.Common.CountryRestrictsCode.All,
SplitWithDate = false,
UseDateSearch = true
});
foreach (var itm in list)
{
Console.WriteLine($"【{itm.Title}】- {itm.SimplifySnippet}");
Console.WriteLine();
}
Your infos are auto-saved when you edit. So you desn't need to type same info.
You can use Google CSE, Twitter, Youtube Services when you use PlurCrawler. I'll add another engine that can be serviced.
If you failed to export, check why you failed and helps export again and you don't need to search again.
PlurCrawler is Divided Library and Execute File. so if you use PlurCrawler as Developer, you can use Library. Otherwise, if you are normal User that want to collect datas, you can use tool.
It Provides variety Export Environment Like Json, CSV, MySQL, Access DB etc.. You can select one or more export engines.
Download 'PlurCrawler' at Nuget, You're all ready to use 'PlurCrawler' Library