-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
3,311 additions
and
59 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file added
BIN
+34.4 KB
.vs/Cimber.Scraper/FileContentIndex/00c16fcc-4201-4f50-9ae8-27e950f58a5a.vsidx
Binary file not shown.
Binary file added
BIN
+32.1 KB
.vs/Cimber.Scraper/FileContentIndex/219346e0-f2e3-4c3c-865b-bf4abf0bac47.vsidx
Binary file not shown.
Binary file removed
BIN
-13.3 KB
.vs/Cimber.Scraper/FileContentIndex/5b0423cd-3981-43fd-9635-97cacf39d899.vsidx
Binary file not shown.
Binary file removed
BIN
-19.9 KB
.vs/Cimber.Scraper/FileContentIndex/796a812a-a5c1-4366-99ee-ff87f5515d61.vsidx
Binary file not shown.
Binary file removed
BIN
-16.6 KB
.vs/Cimber.Scraper/FileContentIndex/9928d1a1-27d9-4270-b361-903cc85ccbe7.vsidx
Binary file not shown.
Binary file added
BIN
+35.8 KB
.vs/Cimber.Scraper/FileContentIndex/a9b633b9-3b38-4d46-be7d-08b4cf0bfda7.vsidx
Binary file not shown.
Binary file removed
BIN
-12.7 KB
.vs/Cimber.Scraper/FileContentIndex/ad5d7225-f3a9-4528-8fca-91589eaba51c.vsidx
Binary file not shown.
Binary file added
BIN
+30.4 KB
.vs/Cimber.Scraper/FileContentIndex/c0efb573-4490-4cca-ad52-f02ca40b1e6d.vsidx
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace Cimber.Scraper | ||
{ | ||
public class Website | ||
{ | ||
public static readonly string GIDONLINE = "https://gidonline.io"; | ||
public static readonly string KINOKRAD = "https://kinokrad.cc"; | ||
public static readonly string KINOPROFI = "https://kinoprofi.vip"; | ||
public static readonly string KINOGO = "https://kinogo-net.la"; | ||
public static readonly string KINOGOUA = "https://kinogoua.com"; | ||
public static readonly string UAKINO = "https://uakino.club/filmy"; | ||
public static readonly string _123Movies= "https://w123moviesfree.net/movies"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,88 @@ | ||
using Cimber.Scraper; | ||
using Cimber.Scraper.Models; | ||
|
||
#region Test | ||
|
||
//var database = new DatabaseService(); | ||
//var film = new Film() | ||
//{ | ||
// Language = Language.English, | ||
// Title = "Королевы ринга", | ||
// LowercaseTitle = "королевы ринга", | ||
// Description = "Главные героини комедийного фильма «Королевы ринга» — самые обычные женщины — Колетт, Джесика, Вивьен и Роза работают кассиршами в супермаркете небольшого городка на Севере Франции. Монотонная, не интересная работа и серые будни совершенно не добавляют радости в жизни, но однажды Роза решает изменить свою жизнь. Она решает заняться столь популярным видом спорта, как рестлинг. Подругам приходится такая идея по душе, ведь они так же жаждут приключений, которые разбавят скучные будни.", | ||
// Year = 2013, | ||
// Countries = new List<string?>() { "Франция" }, | ||
// EnglishCountries = new List<string?>() { "France" }, | ||
// Duration = new TimeSpan(1, 37, 0), | ||
// Genres = new List<string?>() { "Комедия" }, | ||
// Poster = "https://gidonline.io/img/db14c3598_200x300.jpg", | ||
// Players = new List<string>() | ||
// { | ||
// "https://spinning.allohalive.com/?kp=543373&token=b51bdfc8af17dee996d3eae53726df", | ||
// "https://47.annacdn.cc/bPc1TBx1jCZH?kp_id=543373", | ||
// "https://voidboost.net/embed/543373" | ||
// } | ||
//}; | ||
//database.AddFilm(film); | ||
|
||
//Thread.Sleep(1000); | ||
//var film2 = new Film() | ||
//{ | ||
// Language = Language.English, | ||
// Title = "Королевы ринга", | ||
// LowercaseTitle = "королевы ринга", | ||
// Description = "Главные героини комедийного фильма «Королевы ринга» — самые обычные женщины — Колетт, Джесика, Вивьен и Роза работают кассиршами в супермаркете небольшого городка на Севере Франции. Монотонная, не интересная работа и серые будни совершенно не добавляют радости в жизни, но однажды Роза решает изменить свою жизнь. Она решает заняться столь популярным видом спорта, как рестлинг. Подругам приходится такая идея по душе, ведь они так же жаждут приключений, которые разбавят скучные будни.", | ||
// Year = 2013, | ||
// Countries = new List<string?>() { "Франция" }, | ||
// EnglishCountries = new List<string?>() { "France" }, | ||
// Duration = new TimeSpan(1, 37, 0), | ||
// Genres = new List<string?>() { "Комедия" }, | ||
// Poster = "https://gidonline.io/img/db14c3598_200x300.jpg", | ||
// Players = new List<string>() | ||
// { | ||
// "https://spinning.allohalive.com/?kp=543373&token=b51bdfc8af17dee996d3eae53726df", | ||
// "https://43247.annacdn.cc/bPc1TBx1jCZH?kp_id=543373", | ||
// "https://234234voidboost.net/embed/543373" | ||
// } | ||
//}; | ||
//database.AddFilm(film2); | ||
|
||
#endregion | ||
using Cimber.Scraper.Scrapers; | ||
using Cimber.Scraper; | ||
using Spectre.Console; | ||
|
||
Console.OutputEncoding = System.Text.Encoding.UTF8; | ||
Logger.InitLogger(); | ||
|
||
AnsiConsole.Markup("[purple][bold]Cimber Scraper v3.0.0[/][/]\n"); | ||
|
||
var table = new Table(); | ||
|
||
table.AddColumn("Id"); | ||
table.AddColumn("[red]Name[/]"); | ||
table.AddColumn("[green]Url[/]"); | ||
table.AddColumn("[blue]Language[/]"); | ||
|
||
table.AddRow("1", "Gidonline", Website.GIDONLINE, "Russian"); | ||
table.AddRow("2", "Kinokrad", Website.KINOKRAD, "Russian"); | ||
table.AddRow("3", "Kinoprofi", Website.KINOPROFI, "Russian"); | ||
table.AddRow("4", "Kinogo", Website.KINOGO, "Russian"); | ||
table.AddRow("5", "Kinogoua", Website.KINOGOUA, "Ukrainian"); | ||
table.AddRow("6", "Uakino", Website.UAKINO, "Ukrainian"); | ||
table.AddRow("7", "123Movies", Website._123Movies, "English"); | ||
|
||
AnsiConsole.Write(table); | ||
var website = AnsiConsole.Prompt( | ||
new SelectionPrompt<string>() | ||
.PageSize(8) | ||
.Title("What website do you want to parse?") | ||
.AddChoices(new[] | ||
{ | ||
"1 - (Gidonline)", "2 - (Kinokrad)", "3 - (Kinoprofi)", "4 - (Kinogo)", "5 - (Kinogoua)", "6 - (Uakino)", "7 - (123Movies)", "[green]All[/]" | ||
})); | ||
AnsiConsole.Markup($"You chose -> {website}\n"); | ||
|
||
if (website!.StartsWith("1")) | ||
{ | ||
var scraper = new GidonlineScraper(); | ||
scraper.Start(); | ||
} | ||
else if (website!.StartsWith("2")) | ||
{ | ||
var scraper = new KinokradScraper(); | ||
scraper.Start(); | ||
} | ||
else if (website!.StartsWith("3")) | ||
{ | ||
var scraper = new KinoprofiScraper(); | ||
scraper.Start(); | ||
} | ||
else if (website!.StartsWith("4")) | ||
{ | ||
var scraper = new KinogoScraper(); | ||
scraper.Start(); | ||
} | ||
else if (website!.StartsWith("5")) | ||
{ | ||
var scraper = new KinogouaScraper(); | ||
scraper.Start(); | ||
} | ||
else if (website!.StartsWith("6")) | ||
{ | ||
var scraper = new UakinoScraper(); | ||
scraper.Start(); | ||
} | ||
else if (website!.StartsWith("7")) | ||
{ | ||
var scraper = new _123MoviesScraper(); | ||
scraper.Start(); | ||
} | ||
else if (website!.Contains("All")) | ||
{ | ||
var gidonlineScraper = new GidonlineScraper(); | ||
var kinokradScraper = new KinokradScraper(); | ||
var kinoprofiScraper = new KinoprofiScraper(); | ||
var kinogoScraper = new KinogoScraper(); | ||
var kinogouaScraper = new KinogouaScraper(); | ||
var uakinoScraper = new UakinoScraper(); | ||
var _123MoviesScraper = new _123MoviesScraper(); | ||
|
||
gidonlineScraper.Start(); | ||
kinokradScraper.Start(); | ||
kinoprofiScraper.Start(); | ||
kinogoScraper.Start(); | ||
kinogouaScraper.Start(); | ||
uakinoScraper.Start(); | ||
_123MoviesScraper.Start(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.