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
Category: web
Python 27 beatifulsoap siteden tüm linkleri çek
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
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]](https://i0.wp.com/gyazo.com/10ca682be9b95b4f7cbd98a88b6a9346.png)
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]](https://i0.wp.com/gyazo.com/8a3b4b48bce63ed334014fc691d7dd84.png)
6. Create a new project
7. You will see a window similar like this.
![[IMG]](https://i0.wp.com/gyazo.com/2d2e377fb43e72071fea0badeff9ce40.png)
8. Click on Tools > Choose Toolbox Items
![[IMG]](https://i0.wp.com/gyazo.com/4e961340cb252672b12df095daef6db9.png)
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]](https://i0.wp.com/gyazo.com/4f41d1e6087a3842406e3e3fe42dd2e5.png)
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]](https://i0.wp.com/gyazo.com/e000cc0bbab5df9df3611f343e0c7b4e.png)
19. Type the following code.
![[IMG]](https://i0.wp.com/gyazo.com/8cc4dde1552efa76a347b01c947bda94.png)
20. Now test your project.
21. You will get something like this.
![[IMG]](https://i0.wp.com/gyazo.com/492448a4d89220c6c8eabeb3561e072b.png)
I know most of you will make a bot using this tutorial and go on with your life
but giving a thanks and rep is highly appreciated.ref http://thebot.net/threads/vb-net-how-to-make-a-firefox-webbrowser.142359/
php gmail yolla
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”);
HttpResponse response = httpclient.execute(httppost);
is = entity.getContent();
Log.e(“Fail 1”, “3”);
——————————–
URL url = new URL(“http://192.168.43.94/spinner.php”);
urlConnection = (HttpURLConnection) url.openConnection();
urlConnection.connect();
is = urlConnection.getInputStream();
php basit geo ip
<?php
header('Content-Type: text/html; charset=utf-8');
$ip = @$_REQUEST['REMOTE_ADDR']; // the IP address to query
$query = @unserialize(file_get_contents('http://ip-api.com/php/'.$ip));
echo $query['city'];
?>
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/”;
$parcala = ‘@
| # | 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/”;
$parcala = ‘@

