start.bat added
This commit is contained in:
2023-08-08 12:05:06 +02:00
parent ee6eb210b7
commit 2de8b4adde
36 changed files with 8 additions and 3 deletions

34
CardMarketBot/Artikel.cs Normal file
View 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;
}
*/