commit b6d53272436d971bf3406287b219f9569a17a180 Author: sevi-kun Date: Fri May 28 20:05:12 2021 +0200 first commit diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..c2986c6 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,26 @@ +{ + "version": "0.2.0", + "configurations": [ + { + // Use IntelliSense to find out which attributes exist for C# debugging + // Use hover for the description of the existing attributes + // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md + "name": ".NET Core Launch (console)", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build", + // If you have changed target frameworks, make sure to update the program path. + "program": "${workspaceFolder}/bin/Debug/net5.0/rhentai.dll", + "args": [], + "cwd": "${workspaceFolder}", + // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console + "console": "internalConsole", + "stopAtEntry": false + }, + { + "name": ".NET Core Attach", + "type": "coreclr", + "request": "attach" + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..eee07c6 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,42 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "command": "dotnet", + "type": "process", + "args": [ + "build", + "${workspaceFolder}/rhentai.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "publish", + "command": "dotnet", + "type": "process", + "args": [ + "publish", + "${workspaceFolder}/rhentai.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "watch", + "command": "dotnet", + "type": "process", + "args": [ + "watch", + "run", + "${workspaceFolder}/rhentai.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + } + ] +} \ No newline at end of file diff --git a/Program.cs b/Program.cs new file mode 100644 index 0000000..cc325bf --- /dev/null +++ b/Program.cs @@ -0,0 +1,48 @@ +using System; +using System.Threading.Tasks; +using System.Net.Http; +using System.Net.Http.Headers; +using System.IO; + +namespace rhentai +{ + class Program + { + private static readonly HttpClient client = new HttpClient(); + + static async Task Main(string[] args){ + await ProcessRepositories(); + } + + private static async Task ProcessRepositories(){ + + client.DefaultRequestHeaders.Accept.Clear(); + client.DefaultRequestHeaders.Accept.Add( + new MediaTypeWithQualityHeaderValue("application/vnd.github.v3+json")); + // client.DefaultRequestHeaders.Add("User-Agent", ".NET Foundation Repository Reporter"); + + var stringTask = client.GetStringAsync("https://nhentai.net/random/"); + + var msg = await stringTask; + + //Console.Write(msg); + + await File.WriteAllTextAsync("output.txt", msg); + + var fileRead = File.ReadAllTextAsync("output.txt"); + + var textread = await fileRead; + int index_tags_start = textread.IndexOf("Tags:"); + int index_tags_end = textread.IndexOf("Artists:"); + + string filteredoutput = ""; + + for (int i = index_tags_start; i < index_tags_end; i++){ + filteredoutput += textread[i]; + } + + Console.Write(filteredoutput); + + } + } +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..41faaa6 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# rhentai diff --git a/bin/Debug/net5.0/ref/rhentai.dll b/bin/Debug/net5.0/ref/rhentai.dll new file mode 100644 index 0000000..e1b45d0 Binary files /dev/null and b/bin/Debug/net5.0/ref/rhentai.dll differ diff --git a/bin/Debug/net5.0/rhentai b/bin/Debug/net5.0/rhentai new file mode 100755 index 0000000..5401142 Binary files /dev/null and b/bin/Debug/net5.0/rhentai differ diff --git a/bin/Debug/net5.0/rhentai.deps.json b/bin/Debug/net5.0/rhentai.deps.json new file mode 100644 index 0000000..bca9753 --- /dev/null +++ b/bin/Debug/net5.0/rhentai.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v5.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v5.0": { + "rhentai/1.0.0": { + "runtime": { + "rhentai.dll": {} + } + } + } + }, + "libraries": { + "rhentai/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/bin/Debug/net5.0/rhentai.dll b/bin/Debug/net5.0/rhentai.dll new file mode 100644 index 0000000..0f9d412 Binary files /dev/null and b/bin/Debug/net5.0/rhentai.dll differ diff --git a/bin/Debug/net5.0/rhentai.pdb b/bin/Debug/net5.0/rhentai.pdb new file mode 100644 index 0000000..56a55fb Binary files /dev/null and b/bin/Debug/net5.0/rhentai.pdb differ diff --git a/bin/Debug/net5.0/rhentai.runtimeconfig.dev.json b/bin/Debug/net5.0/rhentai.runtimeconfig.dev.json new file mode 100644 index 0000000..ef98ebb --- /dev/null +++ b/bin/Debug/net5.0/rhentai.runtimeconfig.dev.json @@ -0,0 +1,8 @@ +{ + "runtimeOptions": { + "additionalProbingPaths": [ + "/home/belar/.dotnet/store/|arch|/|tfm|", + "/home/belar/.nuget/packages" + ] + } +} \ No newline at end of file diff --git a/bin/Debug/net5.0/rhentai.runtimeconfig.json b/bin/Debug/net5.0/rhentai.runtimeconfig.json new file mode 100644 index 0000000..a8e7e82 --- /dev/null +++ b/bin/Debug/net5.0/rhentai.runtimeconfig.json @@ -0,0 +1,9 @@ +{ + "runtimeOptions": { + "tfm": "net5.0", + "framework": { + "name": "Microsoft.NETCore.App", + "version": "5.0.0" + } + } +} \ No newline at end of file diff --git a/obj/Debug/net5.0/.NETCoreApp,Version=v5.0.AssemblyAttributes.cs b/obj/Debug/net5.0/.NETCoreApp,Version=v5.0.AssemblyAttributes.cs new file mode 100644 index 0000000..614107e --- /dev/null +++ b/obj/Debug/net5.0/.NETCoreApp,Version=v5.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v5.0", FrameworkDisplayName = "")] diff --git a/obj/Debug/net5.0/apphost b/obj/Debug/net5.0/apphost new file mode 100755 index 0000000..5401142 Binary files /dev/null and b/obj/Debug/net5.0/apphost differ diff --git a/obj/Debug/net5.0/ref/rhentai.dll b/obj/Debug/net5.0/ref/rhentai.dll new file mode 100644 index 0000000..e1b45d0 Binary files /dev/null and b/obj/Debug/net5.0/ref/rhentai.dll differ diff --git a/obj/Debug/net5.0/rhentai.AssemblyInfo.cs b/obj/Debug/net5.0/rhentai.AssemblyInfo.cs new file mode 100644 index 0000000..e9ed420 --- /dev/null +++ b/obj/Debug/net5.0/rhentai.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("rhentai")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("rhentai")] +[assembly: System.Reflection.AssemblyTitleAttribute("rhentai")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/obj/Debug/net5.0/rhentai.AssemblyInfoInputs.cache b/obj/Debug/net5.0/rhentai.AssemblyInfoInputs.cache new file mode 100644 index 0000000..818d839 --- /dev/null +++ b/obj/Debug/net5.0/rhentai.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +c7e7c101900146cf998b03ee48864513d6780038 diff --git a/obj/Debug/net5.0/rhentai.GeneratedMSBuildEditorConfig.editorconfig b/obj/Debug/net5.0/rhentai.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..d7e2983 --- /dev/null +++ b/obj/Debug/net5.0/rhentai.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,8 @@ +is_global = true +build_property.TargetFramework = net5.0 +build_property.TargetPlatformMinVersion = +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.PublishSingleFile = +build_property.IncludeAllContentForSelfExtract = +build_property._SupportedPlatformList = Android,iOS,Linux,macOS,Windows diff --git a/obj/Debug/net5.0/rhentai.assets.cache b/obj/Debug/net5.0/rhentai.assets.cache new file mode 100644 index 0000000..9447db8 Binary files /dev/null and b/obj/Debug/net5.0/rhentai.assets.cache differ diff --git a/obj/Debug/net5.0/rhentai.csproj.AssemblyReference.cache b/obj/Debug/net5.0/rhentai.csproj.AssemblyReference.cache new file mode 100644 index 0000000..84af45c Binary files /dev/null and b/obj/Debug/net5.0/rhentai.csproj.AssemblyReference.cache differ diff --git a/obj/Debug/net5.0/rhentai.csproj.CoreCompileInputs.cache b/obj/Debug/net5.0/rhentai.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..2c37423 --- /dev/null +++ b/obj/Debug/net5.0/rhentai.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +dbcbf6bb51b27451db101b7859889f98f56ebf31 diff --git a/obj/Debug/net5.0/rhentai.csproj.FileListAbsolute.txt b/obj/Debug/net5.0/rhentai.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..a4597cd --- /dev/null +++ b/obj/Debug/net5.0/rhentai.csproj.FileListAbsolute.txt @@ -0,0 +1,16 @@ +/home/belar/Documents/code/dotnet/csharp/rhentai/bin/Debug/net5.0/rhentai +/home/belar/Documents/code/dotnet/csharp/rhentai/bin/Debug/net5.0/rhentai.deps.json +/home/belar/Documents/code/dotnet/csharp/rhentai/bin/Debug/net5.0/rhentai.runtimeconfig.json +/home/belar/Documents/code/dotnet/csharp/rhentai/bin/Debug/net5.0/rhentai.runtimeconfig.dev.json +/home/belar/Documents/code/dotnet/csharp/rhentai/bin/Debug/net5.0/rhentai.dll +/home/belar/Documents/code/dotnet/csharp/rhentai/bin/Debug/net5.0/ref/rhentai.dll +/home/belar/Documents/code/dotnet/csharp/rhentai/bin/Debug/net5.0/rhentai.pdb +/home/belar/Documents/code/dotnet/csharp/rhentai/obj/Debug/net5.0/rhentai.csprojAssemblyReference.cache +/home/belar/Documents/code/dotnet/csharp/rhentai/obj/Debug/net5.0/rhentai.GeneratedMSBuildEditorConfig.editorconfig +/home/belar/Documents/code/dotnet/csharp/rhentai/obj/Debug/net5.0/rhentai.AssemblyInfoInputs.cache +/home/belar/Documents/code/dotnet/csharp/rhentai/obj/Debug/net5.0/rhentai.AssemblyInfo.cs +/home/belar/Documents/code/dotnet/csharp/rhentai/obj/Debug/net5.0/rhentai.csproj.CoreCompileInputs.cache +/home/belar/Documents/code/dotnet/csharp/rhentai/obj/Debug/net5.0/rhentai.dll +/home/belar/Documents/code/dotnet/csharp/rhentai/obj/Debug/net5.0/ref/rhentai.dll +/home/belar/Documents/code/dotnet/csharp/rhentai/obj/Debug/net5.0/rhentai.pdb +/home/belar/Documents/code/dotnet/csharp/rhentai/obj/Debug/net5.0/rhentai.genruntimeconfig.cache diff --git a/obj/Debug/net5.0/rhentai.csprojAssemblyReference.cache b/obj/Debug/net5.0/rhentai.csprojAssemblyReference.cache new file mode 100644 index 0000000..757c74d Binary files /dev/null and b/obj/Debug/net5.0/rhentai.csprojAssemblyReference.cache differ diff --git a/obj/Debug/net5.0/rhentai.dll b/obj/Debug/net5.0/rhentai.dll new file mode 100644 index 0000000..0f9d412 Binary files /dev/null and b/obj/Debug/net5.0/rhentai.dll differ diff --git a/obj/Debug/net5.0/rhentai.genruntimeconfig.cache b/obj/Debug/net5.0/rhentai.genruntimeconfig.cache new file mode 100644 index 0000000..2c8add7 --- /dev/null +++ b/obj/Debug/net5.0/rhentai.genruntimeconfig.cache @@ -0,0 +1 @@ +e7cb325f8a7eb60da8f512fb2e15138b4f5a839f diff --git a/obj/Debug/net5.0/rhentai.pdb b/obj/Debug/net5.0/rhentai.pdb new file mode 100644 index 0000000..56a55fb Binary files /dev/null and b/obj/Debug/net5.0/rhentai.pdb differ diff --git a/obj/project.assets.json b/obj/project.assets.json new file mode 100644 index 0000000..2cb7cc6 --- /dev/null +++ b/obj/project.assets.json @@ -0,0 +1,71 @@ +{ + "version": 3, + "targets": { + "net5.0": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + "net5.0": [] + }, + "packageFolders": { + "/home/belar/.nuget/packages/": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "/home/belar/Documents/code/dotnet/csharp/rhentai/rhentai.csproj", + "projectName": "rhentai", + "projectPath": "/home/belar/Documents/code/dotnet/csharp/rhentai/rhentai.csproj", + "packagesPath": "/home/belar/.nuget/packages/", + "outputPath": "/home/belar/Documents/code/dotnet/csharp/rhentai/obj/", + "projectStyle": "PackageReference", + "configFilePaths": [ + "/home/belar/.nuget/NuGet/NuGet.Config" + ], + "originalTargetFrameworks": [ + "net5.0" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net5.0": { + "targetAlias": "net5.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net5.0": { + "targetAlias": "net5.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48" + ], + "assetTargetFallback": true, + "warn": true, + "downloadDependencies": [ + { + "name": "Microsoft.AspNetCore.App.Ref", + "version": "[5.0.0, 5.0.0]" + } + ], + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/5.0.203/RuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/obj/project.nuget.cache b/obj/project.nuget.cache new file mode 100644 index 0000000..1d0f156 --- /dev/null +++ b/obj/project.nuget.cache @@ -0,0 +1,10 @@ +{ + "version": 2, + "dgSpecHash": "+KYrRDxWep6bU4Pn1U4sbGsxOo+c5GJhI6eDUk0MleUQxC6NBIyFBF5Fbs4k+IFhLKg09oZ8GQAq/is/oxzh4w==", + "success": true, + "projectFilePath": "/home/belar/Documents/code/dotnet/csharp/rhentai/rhentai.csproj", + "expectedPackageFiles": [ + "/home/belar/.nuget/packages/microsoft.aspnetcore.app.ref/5.0.0/microsoft.aspnetcore.app.ref.5.0.0.nupkg.sha512" + ], + "logs": [] +} \ No newline at end of file diff --git a/obj/rhentai.csproj.nuget.dgspec.json b/obj/rhentai.csproj.nuget.dgspec.json new file mode 100644 index 0000000..87472ab --- /dev/null +++ b/obj/rhentai.csproj.nuget.dgspec.json @@ -0,0 +1,66 @@ +{ + "format": 1, + "restore": { + "/home/belar/Documents/code/dotnet/csharp/rhentai/rhentai.csproj": {} + }, + "projects": { + "/home/belar/Documents/code/dotnet/csharp/rhentai/rhentai.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "/home/belar/Documents/code/dotnet/csharp/rhentai/rhentai.csproj", + "projectName": "rhentai", + "projectPath": "/home/belar/Documents/code/dotnet/csharp/rhentai/rhentai.csproj", + "packagesPath": "/home/belar/.nuget/packages/", + "outputPath": "/home/belar/Documents/code/dotnet/csharp/rhentai/obj/", + "projectStyle": "PackageReference", + "configFilePaths": [ + "/home/belar/.nuget/NuGet/NuGet.Config" + ], + "originalTargetFrameworks": [ + "net5.0" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net5.0": { + "targetAlias": "net5.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net5.0": { + "targetAlias": "net5.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48" + ], + "assetTargetFallback": true, + "warn": true, + "downloadDependencies": [ + { + "name": "Microsoft.AspNetCore.App.Ref", + "version": "[5.0.0, 5.0.0]" + } + ], + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/5.0.203/RuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/obj/rhentai.csproj.nuget.g.props b/obj/rhentai.csproj.nuget.g.props new file mode 100644 index 0000000..692925e --- /dev/null +++ b/obj/rhentai.csproj.nuget.g.props @@ -0,0 +1,18 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + /home/belar/.nuget/packages/ + /home/belar/.nuget/packages/ + PackageReference + 5.9.1 + + + + + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + + \ No newline at end of file diff --git a/obj/rhentai.csproj.nuget.g.targets b/obj/rhentai.csproj.nuget.g.targets new file mode 100644 index 0000000..53cfaa1 --- /dev/null +++ b/obj/rhentai.csproj.nuget.g.targets @@ -0,0 +1,6 @@ + + + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + + \ No newline at end of file diff --git a/output.txt b/output.txt new file mode 100644 index 0000000..52e3f8d --- /dev/null +++ b/output.txt @@ -0,0 +1,39 @@ + + + + +Akuma to no Love Love Kyoudou Seikatsu Ch. 1 » nhentai: hentai doujinshi and manga

[Mameko] Akuma to no Love Love Kyoudou Seikatsu Ch. 1 (COMIC Reboot Vol. 07) [Chinese] [路过的骑士汉化组] [Digital]

[まめこ] 悪魔とのラブラブ共同性活 第1話 (コミックリブート Vol.07) [中国翻訳] [DL版]

+ Artists: + mameko107
+ Languages: + translated134Kchinese58K
+ Categories: + manga89K
+ Pages: + 26
+ Uploaded: +

Post a comment

or to post a comment. +

diff --git a/rhentai.csproj b/rhentai.csproj new file mode 100644 index 0000000..2082704 --- /dev/null +++ b/rhentai.csproj @@ -0,0 +1,8 @@ + + + + Exe + net5.0 + + +