Code cleanup
This commit is contained in:
34
ConsoleApp3/Artikel.cs
Normal file
34
ConsoleApp3/Artikel.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
// See https://aka.ms/new-console-template for more information
|
||||
|
||||
internal class Artikel
|
||||
{
|
||||
public int Amount { get; set; }
|
||||
public string GERName { get; set; } = "";
|
||||
public string ENGName { get; set; } = "";
|
||||
public string CardNumber { get; set; } = "";
|
||||
public string Source { get; set; } = "";
|
||||
public string Raritaet { get; set; } = "";
|
||||
public string Preis { get; set; } = "";
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
HttpWebRequest hwr = (HttpWebRequest)HttpWebRequest.Create(@"https://www.cardmarket.com/de/OnePiece/Orders/Sales/Paid");
|
||||
hwr.CookieContainer = cookieContainer;
|
||||
hwr.Method = "GET";
|
||||
hwr.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36";
|
||||
WebResponse wr = hwr.GetResponse();
|
||||
string s = new StreamReader(wr.GetResponseStream()).ReadToEnd();
|
||||
Console.WriteLine(s);
|
||||
|
||||
string GetHashKey(string line)
|
||||
{
|
||||
var x = line.IndexOf("__cmtkn");
|
||||
var d = line.Substring(x + 16);
|
||||
var m = d.IndexOf("\"");
|
||||
var a = d.Substring(0, m);
|
||||
return a;
|
||||
}
|
||||
|
||||
*/
|
||||
Reference in New Issue
Block a user