Removed profanity
This commit is contained in:
parent
e677514cb6
commit
274aa1b8d0
12 changed files with 23 additions and 23 deletions
|
|
@ -508,7 +508,7 @@ class baidu{
|
|||
//
|
||||
$proxy = $this->backend->get_ip();
|
||||
|
||||
// running this will give us shit in $this->cookie
|
||||
// running this will give us stuff in $this->cookie
|
||||
// @TODO probably not needed? I get blocked anyways ffs
|
||||
//$this->get($proxy, "https://www.baidu.com", []);
|
||||
|
||||
|
|
@ -1417,7 +1417,7 @@ class baidu{
|
|||
}
|
||||
|
||||
// get URL
|
||||
// handle http://fakeurl.baidu.com bullshit
|
||||
// handle http://fakeurl.baidu.com stuff
|
||||
$url =
|
||||
$this->fuckhtml
|
||||
->getTextContent(
|
||||
|
|
@ -1431,7 +1431,7 @@ class baidu{
|
|||
)
|
||||
){
|
||||
|
||||
// we got some bullshit, get jumpUrl instead
|
||||
// we got some stuff, get jumpUrl instead
|
||||
$as =
|
||||
$this->fuckhtml
|
||||
->getElementsByTagName(
|
||||
|
|
@ -1468,7 +1468,7 @@ class baidu{
|
|||
"div"
|
||||
);
|
||||
|
||||
// remove "read more" bullshit
|
||||
// remove "read more" stuff
|
||||
foreach($rows as $row){
|
||||
|
||||
if(strpos($row["attributes"]["class"], "op-xueshu-links-more") !== false){
|
||||
|
|
@ -2051,7 +2051,7 @@ class baidu{
|
|||
$parts = explode("src=", $url);
|
||||
if(count($parts) !== 2){
|
||||
|
||||
// shits fucked
|
||||
// stuff
|
||||
return $url;
|
||||
}
|
||||
|
||||
|
|
@ -2062,7 +2062,7 @@ class baidu{
|
|||
|
||||
if(count($q) !== 2){
|
||||
|
||||
// shits fucked, again
|
||||
// stuff
|
||||
return $url;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue