no need to scrape Twitter profile photo from page - it's no longer there.
This commit is contained in:
parent
8294dde936
commit
9115e9c90b
|
@ -249,20 +249,6 @@ function scrape_feed($url) {
|
||||||
return $ret;
|
return $ret;
|
||||||
|
|
||||||
|
|
||||||
$items = $dom->getElementsByTagName('img');
|
|
||||||
|
|
||||||
// get img elements (twitter)
|
|
||||||
|
|
||||||
if($items) {
|
|
||||||
foreach($items as $item) {
|
|
||||||
$x = $item->getAttribute('id');
|
|
||||||
if($x === 'profile-image') {
|
|
||||||
$ret['photo'] = $item->getAttribute('src');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
$head = $dom->getElementsByTagName('base');
|
$head = $dom->getElementsByTagName('base');
|
||||||
if($head) {
|
if($head) {
|
||||||
foreach($head as $head0) {
|
foreach($head as $head0) {
|
||||||
|
|
Loading…
Reference in a new issue