<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Asp.net İle Bot Yazma | SanalData | Yazılım ve Teknoloji Haberleri Sitesi</title>
	<atom:link href="https://www.sanaldata.com/e/asp-net-ile-bot-yazma/feed" rel="self" type="application/rss+xml" />
	<link>https://www.sanaldata.com</link>
	<description>Yazılım ve teknoloji üzerine her türlü makaleye ulaşabileceğiniz site</description>
	<lastBuildDate>Mon, 09 May 2022 12:51:34 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.sanaldata.com/wp-content/uploads/2016/11/cropped-logo-32x32.png</url>
	<title>Asp.net İle Bot Yazma | SanalData | Yazılım ve Teknoloji Haberleri Sitesi</title>
	<link>https://www.sanaldata.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>C# ile Websitesinin kaynak kodlarını çekme</title>
		<link>https://www.sanaldata.com/c-ile-websitesinin-kaynak-kodlarini-cekme</link>
					<comments>https://www.sanaldata.com/c-ile-websitesinin-kaynak-kodlarini-cekme#respond</comments>
		
		<dc:creator><![CDATA[Burak]]></dc:creator>
		<pubDate>Mon, 09 May 2022 08:03:24 +0000</pubDate>
				<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Asp.net İle Bot Yazma]]></category>
		<category><![CDATA[C# ile bot yazma]]></category>
		<guid isPermaLink="false">https://www.sanaldata.com/?p=1449</guid>

					<description><![CDATA[<p>Merhaba arkadaşlar, bazı durumlarda herhangi bir sitenin kaynak kodlarını çekmemiz gerekebilir işte böyle durumlarda aşağıdaki kodları kullanabilirsiniz. 1.Adım Kütüpaneler [crayon-69f31dfb3ba93557082630/] 2.Adım Kullanıcaklar Kodlar [crayon-69f31dfb3baa1080940684/] Hepsi bu kadar 🙂 Ekleme  ( 01.03.2022) Eğer türkçe karakter sorunu yaşarsanız StreamReader CevapOku = new StreamReader(GelenCevap.GetResponseStream()); kısmını aşağıdaki gibi revize etmeniz yeterlidir. StreamReader CevapOku = new StreamReader(GelenCevap.GetResponseStream(), Encoding.GetEncoding(&#8220;iso-8859-9&#8221;)); Alternatif Kod [&#8230;]</p>
The post <a href="https://www.sanaldata.com/c-ile-websitesinin-kaynak-kodlarini-cekme">C# ile Websitesinin kaynak kodlarını çekme</a> first appeared on <a href="https://www.sanaldata.com">SanalData | Yazılım ve Teknoloji Haberleri Sitesi</a>.]]></description>
										<content:encoded><![CDATA[<p>Merhaba arkadaşlar, bazı durumlarda herhangi bir sitenin kaynak kodlarını çekmemiz gerekebilir işte böyle durumlarda aşağıdaki kodları kullanabilirsiniz.</p>
<p>1.Adım Kütüpaneler</p><pre class="urvanov-syntax-highlighter-plain-tag">using System.Net;
using System.IO;
using System.Text.RegularExpressions;</pre><p>2.Adım Kullanıcaklar Kodlar</p><pre class="urvanov-syntax-highlighter-plain-tag">ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
WebRequest SiteyeBaglantiTalebi = HttpWebRequest.Create("https://www.google.com");
WebResponse GelenCevap = SiteyeBaglantiTalebi.GetResponse();
StreamReader CevapOku = new StreamReader(GelenCevap.GetResponseStream());
string KaynakKodlar = CevapOku.ReadToEnd();
Response.Write(KaynakKodlar);</pre><p>Hepsi bu kadar <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p><em><strong>Ekleme  ( 01.03.2022)</strong></em></p>
<p>Eğer türkçe karakter sorunu yaşarsanız</p>
<p><strong>StreamReader CevapOku = new StreamReader(GelenCevap.GetResponseStream());</strong></p>
<p>kısmını aşağıdaki gibi revize etmeniz yeterlidir.</p>
<p><strong> StreamReader CevapOku = new StreamReader(GelenCevap.GetResponseStream(), Encoding.GetEncoding(&#8220;iso-8859-9&#8221;));</strong></p>
<p><strong>Alternatif Kod 2</strong></p>
<p>Yukardaki koda alternatif olarak aşağıdakinide kullanabilirsiniz.</p><pre class="urvanov-syntax-highlighter-plain-tag">string URL11 = url;
        WebClient client= new WebClient();
        client.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; " + "Windows NT 5.2; .NET CLR 1.0.3705;)");
        Stream data = client.OpenRead(URL11);
        StreamReader reader = new StreamReader(data);      
        string icerik = "";
        icerik = reader.ReadToEnd();
        Response.Write(icerik);</pre><p></p>The post <a href="https://www.sanaldata.com/c-ile-websitesinin-kaynak-kodlarini-cekme">C# ile Websitesinin kaynak kodlarını çekme</a> first appeared on <a href="https://www.sanaldata.com">SanalData | Yazılım ve Teknoloji Haberleri Sitesi</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.sanaldata.com/c-ile-websitesinin-kaynak-kodlarini-cekme/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
