This repository has been archived on 2025-05-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
cardmarketbot/CardMarketBot/Artikel.cs
Damian Wessels 2de8b4adde Renaming
start.bat added
2023-08-08 12:05:06 +02:00

34 lines
1.0 KiB
C#

// 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;
}
*/