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;
|
||||
|
||||
|
||||
$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');
|
||||
if($head) {
|
||||
foreach($head as $head0) {
|
||||
|
|
Loading…
Reference in a new issue