Tja! Behöver hjälp med min kod här. Jag vill att programmet ska kunna logga in o sedan hämta data istället för att bara hämta data. Så här ser min kod ut just nu.
Kod:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Net;
namespace Parse
{
public partial class Parser : Form
{
public Parser()
{
InitializeComponent();
}
private void Parser_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
WebClient w = new WebClient();
string page = w.DownloadString("http://www.swefilmer.com/");
string name = "alt=\"(.*?)\"";
foreach(Match match in Regex.Matches(page, name))
listSerials.Items.Add(match.Groups[1].Value);
}
private void label1_Click(object sender, EventArgs e)
{
}
}
}
Tack på förhand!