From 52627c8e0c4fd245d45cd0a7fc26c83c8b89fd8c Mon Sep 17 00:00:00 2001 From: liebki <71221724+liebki@users.noreply.github.com> Date: Fri, 12 Aug 2022 18:12:09 +0200 Subject: [PATCH] MMOGAScraper is now MMOGANet, a better name (at least I think that) --- MMOGAScraper.sln => MMOGANet.sln | 11 ++++++++++- {MMOGAScraper => MMOGANet}/LightProduct.cs | 0 .../MMOGANet.csproj | 2 +- {MMOGAScraper => MMOGANet}/MmogaScraper.cs | 0 {MMOGAScraper => MMOGANet}/Product.cs | 0 {MMOGAScraper => MMOGANet}/Requirements.cs | 0 {MMOGAScraper => MMOGANet}/ScraperMethods.cs | 3 +-- {MMOGAScraper => MMOGANet}/ScraperValues.cs | 0 MMOGANetDemo/MMOGANetDemo.csproj | 15 +++++++++++++++ {MMOGAScraper => MMOGANetDemo}/Program.cs | 6 ++++-- README.md | 2 +- 11 files changed, 32 insertions(+), 7 deletions(-) rename MMOGAScraper.sln => MMOGANet.sln (55%) rename {MMOGAScraper => MMOGANet}/LightProduct.cs (100%) rename MMOGAScraper/MMOGAScraper.csproj => MMOGANet/MMOGANet.csproj (89%) rename {MMOGAScraper => MMOGANet}/MmogaScraper.cs (100%) rename {MMOGAScraper => MMOGANet}/Product.cs (100%) rename {MMOGAScraper => MMOGANet}/Requirements.cs (100%) rename {MMOGAScraper => MMOGANet}/ScraperMethods.cs (98%) rename {MMOGAScraper => MMOGANet}/ScraperValues.cs (100%) create mode 100644 MMOGANetDemo/MMOGANetDemo.csproj rename {MMOGAScraper => MMOGANetDemo}/Program.cs (98%) diff --git a/MMOGAScraper.sln b/MMOGANet.sln similarity index 55% rename from MMOGAScraper.sln rename to MMOGANet.sln index fbb63a6..7819622 100644 --- a/MMOGAScraper.sln +++ b/MMOGANet.sln @@ -3,7 +3,12 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.2.32630.192 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MMOGAScraper", "MMOGAScraper\MMOGAScraper.csproj", "{2832ED59-5C50-4C02-944F-750F209EB415}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MMOGANet", "MMOGANet\MMOGANet.csproj", "{2832ED59-5C50-4C02-944F-750F209EB415}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MMOGANetDemo", "MMOGANetDemo\MMOGANetDemo.csproj", "{D8E49491-9940-4715-8EBD-3203A3299F7F}" + ProjectSection(ProjectDependencies) = postProject + {2832ED59-5C50-4C02-944F-750F209EB415} = {2832ED59-5C50-4C02-944F-750F209EB415} + EndProjectSection EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -15,6 +20,10 @@ Global {2832ED59-5C50-4C02-944F-750F209EB415}.Debug|Any CPU.Build.0 = Debug|Any CPU {2832ED59-5C50-4C02-944F-750F209EB415}.Release|Any CPU.ActiveCfg = Release|Any CPU {2832ED59-5C50-4C02-944F-750F209EB415}.Release|Any CPU.Build.0 = Release|Any CPU + {D8E49491-9940-4715-8EBD-3203A3299F7F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D8E49491-9940-4715-8EBD-3203A3299F7F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D8E49491-9940-4715-8EBD-3203A3299F7F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D8E49491-9940-4715-8EBD-3203A3299F7F}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/MMOGAScraper/LightProduct.cs b/MMOGANet/LightProduct.cs similarity index 100% rename from MMOGAScraper/LightProduct.cs rename to MMOGANet/LightProduct.cs diff --git a/MMOGAScraper/MMOGAScraper.csproj b/MMOGANet/MMOGANet.csproj similarity index 89% rename from MMOGAScraper/MMOGAScraper.csproj rename to MMOGANet/MMOGANet.csproj index 4f13221..5dbfeaa 100644 --- a/MMOGAScraper/MMOGAScraper.csproj +++ b/MMOGANet/MMOGANet.csproj @@ -1,7 +1,7 @@ - Exe + Library net6.0 enable enable diff --git a/MMOGAScraper/MmogaScraper.cs b/MMOGANet/MmogaScraper.cs similarity index 100% rename from MMOGAScraper/MmogaScraper.cs rename to MMOGANet/MmogaScraper.cs diff --git a/MMOGAScraper/Product.cs b/MMOGANet/Product.cs similarity index 100% rename from MMOGAScraper/Product.cs rename to MMOGANet/Product.cs diff --git a/MMOGAScraper/Requirements.cs b/MMOGANet/Requirements.cs similarity index 100% rename from MMOGAScraper/Requirements.cs rename to MMOGANet/Requirements.cs diff --git a/MMOGAScraper/ScraperMethods.cs b/MMOGANet/ScraperMethods.cs similarity index 98% rename from MMOGAScraper/ScraperMethods.cs rename to MMOGANet/ScraperMethods.cs index 7e99220..780c494 100644 --- a/MMOGAScraper/ScraperMethods.cs +++ b/MMOGANet/ScraperMethods.cs @@ -262,8 +262,7 @@ private static string FilterRequirementsData(string input, bool small) { input = input.Replace("Betriebssystem:", " Betriebssystem:"); } - input = input.Replace("Prozessor:", " Prozessor:").Replace("Arbeitsspeicher:", " Arbeitsspeicher:").Replace("Grafikkarte:", " Grafikkarte:").Replace("Speicherplatz:", " Speicherplatz:").Replace("Breitband", " Breitband"); - return input; + return input.Replace("Prozessor:", " Prozessor:").Replace("Arbeitsspeicher:", " Arbeitsspeicher:").Replace("Grafikkarte:", " Grafikkarte:").Replace("Speicherplatz:", " Speicherplatz:").Replace("Breitband", " Breitband"); } internal static int CalculateQueryPageNumber(HtmlDocument doc) diff --git a/MMOGAScraper/ScraperValues.cs b/MMOGANet/ScraperValues.cs similarity index 100% rename from MMOGAScraper/ScraperValues.cs rename to MMOGANet/ScraperValues.cs diff --git a/MMOGANetDemo/MMOGANetDemo.csproj b/MMOGANetDemo/MMOGANetDemo.csproj new file mode 100644 index 0000000..32ad14a --- /dev/null +++ b/MMOGANetDemo/MMOGANetDemo.csproj @@ -0,0 +1,15 @@ + + + + Exe + net6.0 + enable + enable + MMOGANetDemo.Program + + + + + + + diff --git a/MMOGAScraper/Program.cs b/MMOGANetDemo/Program.cs similarity index 98% rename from MMOGAScraper/Program.cs rename to MMOGANetDemo/Program.cs index 6d6ef04..97e2a55 100644 --- a/MMOGAScraper/Program.cs +++ b/MMOGANetDemo/Program.cs @@ -1,6 +1,8 @@ -namespace MMOGAScraper +using MMOGAScraper; + +namespace MMOGANetDemo { - internal class Program + public class Program { public static void Main() { diff --git a/README.md b/README.md index ec9e6ea..7f7f06b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# MMOGA Product Scraper (API) +# MMOGANet (Scraper for mmoga) ##### Projekt von https://github.com/liebki