<details>
<summary>Click To Open</summary>
Hey, im natively collapsable. My content remains hidden till you click on Summary.
</details>
Çıktı:
kaybedilen notlar
2 Mayıs 2021 Pazar
Html Summary Kullanımı
Mysql Fonksiyon Oluşturmak
DELIMITER $$
CREATE DEFINER=`root`@`localhost` FUNCTION `DENEME`(`id_no` INT(11)) RETURNS varchar(50) CHARSET utf8mb4
BEGIN
DECLARE UNAME VARCHAR(100);
SELECT k.ad AS kad INTO UNAME FROM kisi AS k WHERE id=id_no LIMIT 1;
RETURN UNAME;
END$$
DELIMITER ;
3 Ocak 2021 Pazar
Php İstisnalar
try{
if(is_array($x)){
echo "bir array girdiniz.";
}
else{
throw new Exception("$x bir array değil!");
}
} catch(Exception $hata){
echo "Hata: ".$hata->getMessage();
} catch(InvalidArgumentException $hata){
echo "merhaba";
}
finally{
echo "huhuhu".PHP_EOL;
}
11 Mayıs 2020 Pazartesi
Using BeautifulSoup to parse HTML and extract press briefings URLs
This article is part of a sequence:
« Previously
Collect the lists of White House press briefings
Let's batch download a list of White House press briefings URL using Python and Requests.
Next »
Extracting absolute URLs from White House press briefings listings
Before we can download each press briefing, we need to extract their URLs from each of the downloaded index pages.
Table of contents
- Converting HTML text into a data object
- Importing the BeautifulSoup constructor function
- The "soup" object
- Extracting text from soup
- Finding a tag with find()
- Extracting attributes from a tag with attrs
- Finding multiple elements with find_all
- Finding nested elements
- Real world example.com
- Extracting individual press briefings URLs from the White House press briefings list
- Examining the source HTML behind each press release tag
- Processing the press briefings page as soup
- All together
Kaydol:
Kayıtlar (Atom)