Python ile webden altın fiyatlarını çekme

import re , urllib
liste=["Kuyumcu Alis","Kuyumcu Satis"]
# size gerekli olan adres
website=urllib.urlopen("http://www.bigpara.com/altin/ceyrek-altin-fiyati")
htmltext=website.read()
# site icinde altin fiyatinin bulundugu alan
getinspect='(.+?)'
pattern=re.compile(getinspect)
price=re.findall(pattern,htmltext)
j=0
for i in price:
    print liste[j]+" fiyati: "+i
    j+=1








output: 
Kuyumcu Alis fiyati: 226,72
Kuyumcu Satis fiyati: 232,39


Python 27 beatifulsoap siteden tüm linkleri çek

önce cmd satırında pip.exeyi bul ve easy_install bs4
pip install lxml

 

 






from bs4 import BeautifulSoup
import urllib2

resp = urllib2.urlopen("http://www.gpsbasecamp.com/national-parks")
soup = BeautifulSoup(resp,  "lxml")

for link in soup.find_all('a', href=True):
    print link['href']

alternatif

from bs4 import BeautifulSoup
import urllib
import re

html_page = urllib.urlopen("http://arstechnica.com")
soup = BeautifulSoup(html_page, "lxml")
for link in soup.findAll('a', attrs={'href': re.compile("^http://")}):
    print link.get('href')

pinterest follow all from google console

for(var bas=0; bas<1000;bas++){
function pinterestlikenext(){
javascript:var inputlike = document.getElementsByClassName('_ebwb5 _1tv0k _345gm coreSpriteHeartOpen');
javascript:var inputfollow = document.getElementsByClassName('_jvpff _k2yal _csba8 _i46jh _nv5lf');
javascript:var inputnext = document.getElementsByClassName('_de018 coreSpriteRightPaginationArrow');
for(var i=0; i<inputslike.length;i++){
inputlike[i].click();
inputfollow[i].click();
inputnext[i].click();}
}




setTimeout(pinterestlikenext,9000)
}

javascript:var inputlike = document.getElementsByClassName(' Button FollowButton Module UserFollowButton btn hasText notNavigatable primary rounded');
for(var i=0; i<inputlike.length;i++){
inputlike[i].click();}



[VB.net] How to make a Firefox Webbrowser

This tutorial will teach you how to make a Firefox Webbrowser. Unlike the Internet Explorer (default one) this one is faster and better.

Requirements

1. Visual Basic
2. Coding Experience in vb.net
3. A Brain

Tutorial

1. First go to http://webkitdotnet.sourceforge.net/downloads.php and click on Win32 Binary File
[​IMG]

2. Open the download zip using 7-zip or some archiver.
3. Extract it to a local directory.
4. Open Visual Basic (or Visual Studio)
5. Click on New Project
[​IMG]

6. Create a new project
7. You will see a window similar like this.
[​IMG]

8. Click on Tools > Choose Toolbox Items
[​IMG]
9. Click on browse and locate to the folder where you extracted the zip file.
10. Go to Extracted Folder > bin > WebKitBrowser.dll
11. Click ok
12. Save Project
13. Copy all files from the directory of Webkit
[​IMG]

14. Go to your Project Folder.
15. Navigate to C:\Users\”YOUR USERNAME”\Documents\Visual Studio 2010\Projects\”PROJECT NAME”\”PROJECT NAME”\bin\Debug folder
16. Paste it there.
17. Now go back to the project
17a. Check your Toolbox.
17b. You will find there is a Webbrowser Control is the last section of the Toolbox. Add it to your program.
18. Double click the form.
[​IMG]

19. Type the following code.
[​IMG]

20. Now test your project.
21. You will get something like this.
[​IMG]

I know most of you will make a bot using this tutorial and go on with your life :alone: but giving a thanks and rep is highly appreciated.:thumbs:

ref http://thebot.net/threads/vb-net-how-to-make-a-firefox-webbrowser.142359/

php gmail yolla

Önce gmailinde bu özelliği aktif et https://accounts.google.com/DisplayUnlockCaptcha

 

daha sonra burdan php maileri indir https://github.com/PHPMailer/PHPMailer/ ve ftpne at

mail yollamak php kodları aşağıdadır

 

<?php
date_default_timezone_set('America/Toronto');
require 'PHPMailerAutoload.php';
require_once('class.phpmailer.php');
//include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded

$mail             = new PHPMailer();

$body             = "gdssdh";
//$body             = eregi_replace("[\]",'',$body);

$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host       = "ssl://smtp.gmail.com"; // SMTP server
$mail->SMTPDebug  = 1;                     // enables SMTP debug information (for testing)
                                           // 1 = errors and messages
                                           // 2 = messages only
$mail->SMTPAuth   = true;                  // enable SMTP authentication
$mail->SMTPSecure = "tls";                 // sets the prefix to the servier
$mail->Host       = "smtp.gmail.com";      // sets GMAIL as the SMTP server
$mail->Port       = 587;                   // set the SMTP port for the GMAIL server
$mail->Username   = "sender@gmail.com";  // GMAIL username
$mail->Password   = "senderpass";            // GMAIL password

$mail->SetFrom('receiver@gmail.com', 'PRSPS');

//$mail->AddReplyTo("receiver2@gmail.com', 'First Last");

$mail->Subject    = "PRSPS password";

//$mail->AltBody    = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test

$mail->MsgHTML($body);

$address = "receiver@gmail.com";
$mail->AddAddress($address, "user2");

//$mail->AddAttachment("images/phpmailer.gif");      // attachment
//$mail->AddAttachment("images/phpmailer_mini.gif"); // attachment

if(!$mail->Send()) {
  echo "Mailer Error: " . $mail->ErrorInfo;
} else {
  echo "Message sent!";
}

?>

httpclient and HttpURLConnection

                    HttpClient httpclient = new DefaultHttpClient();
                    HttpPost httppost = new HttpPost(“http://192.168.43.94/spinner.php&#8221;);
                    HttpResponse response = httpclient.execute(httppost);
                    is = entity.getContent();
                    Log.e(“Fail 1”, “3”);

——————————–

                    URL url = new URL(“http://192.168.43.94/spinner.php&#8221;);
                    urlConnection = (HttpURLConnection) url.openConnection();
                    urlConnection.connect();
                    is = urlConnection.getInputStream();

Chrome console check all checkbox in page

var getInputs = document.getElementsByTagName("input");
for (var i = 0, max = getInputs.length; i < max; i++){
if (getInputs[i].type === 'checkbox'){

if (getInputs[i].name === 'checkall'){
getInputs[i].checked = false;} else

getInputs[i].checked = true;
}}









var getInputs = document.getElementsByTagName("input");
for (var i = 0, max = getInputs.length; i < 850; i++){
if (getInputs[i].type === 'checkbox'){




if (getInputs[i].name === 'checkall'){
getInputs[i].checked = false;} else

getInputs[i].checked = true;
}}

PHPBOT DOVIZ KURLARI – NOBETCI ECZANE KKTC

(<?php echo date("d/m/Y")
?>
) DOVİZ KURLARI





<?php

$link = “http://www.kktcmerkezbankasi.org/&#8221;;
$parcala = ‘@

(.*?)a href=”/veriler/doviz_kurlari/kur_sorgulama”@si’;
$botara = str_replace(array(“\n”,”\r”,”\t”), NULL, file_get_contents($link));
preg_match_all($parcala, $botara, $baslik);

echo $baslik[0][0];

?>

—————————————————–

doviz kurları2

<?php
$xml = simplexml_load_file(“http://www.kktcmerkezbankasi.org/kur/gunluk.xml&#8221;);
        echo ‘

‘;
        echo ‘

         

           

           

           

         

       

‘;
        echo ‘

‘;
        foreach ($xml->Resmi_Kurlar->Resmi_Kur as $resmi_kur) {

            echo ‘

           

           

           

         
         

‘;
        }
        echo ‘

# Alış Satış
‘ . $resmi_kur->Sembol . ‘ ‘ . number_format((float) $resmi_kur->Doviz_Alis, 2, ‘.’, ‘,’) . ‘ TL ‘ . number_format((float) $resmi_kur->Doviz_Satis, 2, ‘.’, ‘,’) . ‘ TL

‘;

?>

——————————————————————————







(<?php echo date("d/m/Y")
?>
) NÖBETÇİ ECZANELER





<?php

$link = “http://www.kteb.org/&#8221;;
$parcala = ‘@

(.*?)

@si’;
$botara = str_replace(array(“\n”,”\r”,”\t”), NULL, file_get_contents($link));
preg_match_all($parcala, $botara, $baslik);

echo $baslik[0][0];

?>