using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Net;
using System.IO;
using HtmlAgilityPack;
namespace denemesql
{
public partial class anaekran : Form
{
public anaekran()
{
InitializeComponent();
}
int sayacilk, sayaciki, sayacuc, sayacdort, sayac5;
private void button2_Click(object sender, EventArgs e)
{
string hedef = "https://weawow.com/tr/c9502360";
WebRequest istek = HttpWebRequest.Create(hedef);
MessageBox.Show(Convert.ToString(istek));
WebResponse yanit;
yanit = istek.GetResponse();
MessageBox.Show(Convert.ToString(yanit));
StreamReader bilgiler = new StreamReader(yanit.GetResponseStream());
string gelen = bilgiler.ReadToEnd();
int baslangic = gelen.IndexOf("<span class=parallax-temp>") + 7;
int bitis = gelen.IndexOf("</span>");
string gelenbilgiler = gelen.Substring(baslangic, bitis);
MessageBox.Show(gelenbilgiler);
}
private void anaekran_Load(object sender, EventArgs e)
{
}
private void timer1_Tick(object sender, EventArgs e)
{
lblsaat.Text = DateTime.Now.ToShortTimeString();
lbltarih.Text = DateTime.Now.ToLongDateString();
}
private void button1_Click(object sender, EventArgs e)
{
girisekrani girisekrani = new girisekrani();
girisekrani.Show();
this.Hide();
}
private void anaekran_FormClosing(object sender, FormClosingEventArgs e)
{
Application.Exit();
}
}
}