+ Yanıtla
Toplam 10 sonuçtan 1 ile 10 arası olanlar

Konu Başlığı: Google - PageRank Bulucu

  1. #1

    Google - PageRank Bulucu

    Bu gün can sıkıntısından ufak bir programcık hazırladım C# ile.

    Girdiğiniz herhangi bir sitenin Google'daki popülerliğini bulabilirsiniz. İleride farklı sürümler çıkarmayı düşünüyorum. Ama ne zaman çıkarırım bilemem.

    [Adres Silindi]

    Bu arada programı çalıştırabilmeniz için NetFramework v1.1 e ihtiyacınız var.

    Belki işinize yarar

    Not : www.siteadi.uzanti şeklinde aramak ile siteadi.uzanti şeklinde aramak arasında fark vardır. Sonra sitenizin pagerank0 olarak bulunursa lütfen programıma laf atmayın
    Mesaj PsyChaos tarafından 27.02.2007 (09:06) yeniden düzenlendi.

  2. #2

    Re: Google - PageRank Bulucu

    Kaynak kodunu acmayi dusunuyor musun?
    --zd

  3. #3

    Re: Google - PageRank Bulucu

    Alıntı blurise tarafından gönderilen mesaj:
    Kaynak kodunu acmayi dusunuyor musun?
    Buyur...

    PHP Kodu:
    using System;
    using System.Drawing;
    using System.Collections;
    using System.ComponentModel;
    using System.Windows.Forms;
    using System.Data;
    using System.Net;
    using System.IO;
    using System.Text.RegularExpressions;

    namespace pagerank
    {
        
    /// <summary>
        /// Summary description for Form1.
        /// </summary>
        
    public class Page Ranking System.Windows.Forms.form
        
    {
            private 
    System.Windows.Forms.Label label1;
            private 
    System.Windows.Forms.TextBox adres;
            private 
    System.Windows.Forms.Label label2;
            private 
    System.Windows.Forms.Label sonuc;
            private 
    System.Windows.Forms.Button bul;
            private 
    System.Windows.Forms.Label label3;
            
    /// <summary>
            /// Required designer variable.
            /// </summary>
            
    private System.ComponentModel.Container components null;
            
            private const 
    string strDesen = @"([0-9]{1,2}\sout\sof\s[0-9]{2})";
            private const 
    string strSiteAdresi "http://rankwhere.com/Google-page-rank.PHP?url=";

            public 
    Page Ranking()
            {
                
    //
                // Required for Windows form Designer support
                //
                
    InitializeComponent();

                
    //
                // TODO: Add any constructor code after InitializeComponent call
                //
            
    }

            
    /// <summary>
            /// Clean up any resources being used.
            /// </summary>
            
    protected override void Disposebool disposing )
            {
                if( 
    disposing )
                {
                    if (
    components != null
                    {
                        
    components.Dispose();
                    }
                }
                
    base.Disposedisposing );
            }

            
    #region Windows form Designer generated code
            /// <summary>
            /// Required method for Designer support - do not modify
            /// the contents of this method with the code editor.
            /// </summary>
            
    private void InitializeComponent()
            {
                
    System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Page Ranking));
                
    this.label1 = new System.Windows.Forms.Label();
                
    this.adres = new System.Windows.Forms.TextBox();
                
    this.label2 = new System.Windows.Forms.Label();
                
    this.sonuc = new System.Windows.Forms.Label();
                
    this.bul = new System.Windows.Forms.Button();
                
    this.label3 = new System.Windows.Forms.Label();
                
    this.SuspendLayout();
                
    // 
                // label1
                // 
                
    this.label1.font = new System.Drawing.font("Verdana"8.25FSystem.Drawing.FontStyle.BoldSystem.Drawing.GraphicsUnit.Point, ((System.Byte)(162)));
                
    this.label1.Location = new System.Drawing.Point(1048);
                
    this.label1.Name "label1";
                
    this.label1.Size = new System.Drawing.Size(8016);
                
    this.label1.TabIndex 0;
                
    this.label1.Text "site Adresi";
                
    // 
                // adres
                // 
                
    this.adres.font = new System.Drawing.font("Verdana"8.25FSystem.Drawing.FontStyle.RegularSystem.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
                
    this.adres.Location = new System.Drawing.Point(3224);
                
    this.adres.Name "adres";
                
    this.adres.Size = new System.Drawing.Size(22421);
                
    this.adres.TabIndex 1;
                
    this.adres.Text "";
                
    this.adres.TextAlign System.Windows.Forms.HorizontalAlignment.Center;
                
    // 
                // label2
                // 
                
    this.label2.font = new System.Drawing.font("Verdana"8.25FSystem.Drawing.FontStyle.BoldSystem.Drawing.GraphicsUnit.Point, ((System.Byte)(162)));
                
    this.label2.Location = new System.Drawing.Point(96104);
                
    this.label2.Name "label2";
                
    this.label2.Size = new System.Drawing.Size(5616);
                
    this.label2.TabIndex 2;
                
    this.label2.Text "Sonuç :";
                
    this.label2.Visible false;
                
    // 
                // sonuc
                // 
                
    this.sonuc.font = new System.Drawing.font("Verdana"8.25FSystem.Drawing.FontStyle.BoldSystem.Drawing.GraphicsUnit.Point, ((System.Byte)(162)));
                
    this.sonuc.ForeColor System.Drawing.Color.Brown;
                
    this.sonuc.Location = new System.Drawing.Point(152104);
                
    this.sonuc.Name "sonuc";
                
    this.sonuc.Size = new System.Drawing.Size(5616);
                
    this.sonuc.TabIndex 3;
                
    this.sonuc.Visible false;
                
    // 
                // bul
                // 
                
    this.bul.font = new System.Drawing.font("Verdana"8.25FSystem.Drawing.FontStyle.BoldSystem.Drawing.GraphicsUnit.Point, ((System.Byte)(162)));
                
    this.bul.Location = new System.Drawing.Point(9656);
                
    this.bul.Name "bul";
                
    this.bul.Size = new System.Drawing.Size(9623);
                
    this.bul.TabIndex 4;
                
    this.bul.Text "Bul Bakalım";
                
    this.bul.Click += new System.EventHandler(this.bul_Click);
                
    // 
                // label3
                // 
                
    this.label3.font = new System.Drawing.font("Verdana"8.25FSystem.Drawing.FontStyle.RegularSystem.Drawing.GraphicsUnit.Point, ((System.Byte)(162)));
                
    this.label3.Location = new System.Drawing.Point(48144);
                
    this.label3.Name "label3";
                
    this.label3.Size = new System.Drawing.Size(19216);
                
    this.label3.TabIndex 5;
                
    this.label3.Text "Copyright 2004 (c) Semih Turna";
                
    // 
                // Page Ranking
                // 
                
    this.AutoScaleBaseSize = new System.Drawing.Size(513);
                
    this.ClientSize = new System.Drawing.Size(292166);
                
    this.Controls.Add(this.label3);
                
    this.Controls.Add(this.bul);
                
    this.Controls.Add(this.sonuc);
                
    this.Controls.Add(this.label2);
                
    this.Controls.Add(this.adres);
                
    this.Controls.Add(this.label1);
                
    this.FormBorderStyle System.Windows.Forms.FormBorderStyle.FixedSingle;
                
    this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
                
    this.MaximizeBox false;
                
    this.Name "Page Ranking";
                
    this.StartPosition System.Windows.Forms.FormStartPosition.CenterScreen;
                
    this.Text "Google - pagerank";
                
    this.ResumeLayout(false);

            }
            
    #endregion

            /// <summary>
            /// The main entry point for the application.
            /// </summary>
            
    [STAThread]
            static 
    void Main() 
            {
                
    Application.Run(new Page Ranking());
            }

            private 
    string IcerikAl(string Ek)
            {
                
    WebResponse objRes null;
                try
                {
                    
    WebRequest objReq WebRequest.Create(strSiteAdresi+Ek);
                    
    objRes objReq.GetResponse();
                }
                catch(
    WebException)
                {
                    
    MessageBox.Show("Bağlantı Kurulamadı!");
                    return 
    null;
                }
                    
                
    Stream objStr objRes.GetResponseStream();
                
    StreamReader objRead = new StreamReader(objStr);
                return 
    objRead.ReadToEnd().ToString();
            }
            private 
    string pagerank(string Gelen)
            {
                
    MatchCollection MC Regex.Matches(Gelen,strDesen);
                
    string strRank null;
                foreach (
    Match xMatches in MC)
                {
                    
    strRank xMatches.Groups[1].ToString();
                }

                return 
    strRank.Replace(" out of ","/");
            }

            private 
    void bul_Click(object senderSystem.EventArgs e)
            {
                
    string strAdres adres.Text;
                if (
    strAdres == string.Empty)
                {
                    
    MessageBox.Show(this,"site Adresini Giriniz!","Hata",MessageBoxButtons.OK,MessageBoxIcon.Information);
                }
                else
                {
                    
    bul.Text "Bekleyin..."bul.Enabled false;
                    if (
    strAdres.IndexOf("http://") == 1)
                    {
                        
    strAdres strAdres.Replace("http://","");
                    }
                    else
                    {
                        
    string Icerik IcerikAl(strAdres);
                        if (
    Icerik != null)
                        {
                            
    label2.Visible truesonuc.Visible true;
                            
    sonuc.Text pagerank(Icerik);
                            
    bul.Text "Bul Bakalım"bul.Enabled trueadres.Text "";
                        }
                    }
                }
            }
        }

    Mesaj PsyChaos tarafından 20.10.2004 (18:20) yeniden düzenlendi.

  4. #4

    Re: Google - PageRank Bulucu

    enter'a basınca arama yapmaması ne kadar kötü bir şeydir bilir misin PsyChaos
    ben biliyorum ve düzeltilmesi taraftarıyım.
    plasticwings ~ değişik konularda yazan birkaç kişinin web günlüğü.
    blogkardeşliği ~ blog yumağı

  5. #5

    Re: Google - PageRank Bulucu

    Alıntı plush tarafından gönderilen mesaj:
    enter'a basınca arama yapmaması ne kadar kötü bir şeydir bilir misin PsyChaos
    ben biliyorum ve düzeltilmesi taraftarıyım.
    ilk kullandığımda aynı şeyi düşündüm güzel uygulama tşkler

  6. #6

    Re: Google - PageRank Bulucu

    Yorumlar ve öneriler için teşekkür ederim arkadaşlar. Bir sonraki sürümünün daha iyi olacağından emin olabilirsiniz. Önerilerinizi dikkate alacağım..

    Saygılarımla.

  7. #7

    Re: Google - PageRank Bulucu

    url çalışmıyor elinde olan varsa buraya eklermi

  8. #8

    Re: Google - PageRank Bulucu

    Alıntı sniper tarafından gönderilen mesaj: Mesajı Göster
    url çalışmıyor elinde olan varsa buraya eklermi
    linki değiştirirseniz iyi olur sorun var!
    Kişisel site : http://www.spaksu.com | Kurumsal Site : http://www.artstil.net

  9. #9

    Re: Google - PageRank Bulucu

    Link'i yeniler iseniz sevinirim.

  10. #10

    Re: Google - PageRank Bulucu

    www.pagerank.gen.tr 'den de aratabilirseniz eğer ayrıca bir programa acil gereksiniminiz yoksa.

+ Yanıtla

Bu konu başlığı için etiketler

Mesaj Seçenekleri

  • Yeni başlık açamazsınız
  • Cevap yazabilirsiniz
  • Dosya ekleyemezsiniz
  • Mesajlarınızı değiştiremezsiniz