Skip to content

Commit

Permalink
Modify Scraper
Browse files Browse the repository at this point in the history
  • Loading branch information
rougin committed Jul 7, 2020
1 parent 58e686c commit d8d106d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
dist: xenial
language: php
os: linux

php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4

sudo: false

matrix:
jobs:
include:
- php: 5.3
dist: precise
Expand Down
6 changes: 3 additions & 3 deletions src/Scraper.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Scraper extends AbstractScraper implements ScraperInterface
/**
* @var string[]
*/
protected $removables = array('.td-a-rec');
protected $removables = array('.td-a-rec', '.addtoany_share_save_container');

/**
* Returns the contents of an article.
Expand All @@ -29,11 +29,11 @@ public function scrape($link)
{
$this->prepare((string) $link);

$title = $this->title('.td-post-title > h1');
$title = $this->title('.tdb-title-text');

$this->remove((array) $this->removables);

$body = $this->body('.has-content-area');
$body = $this->body('.tdb_single_content > .tdb-block-inner.td-fix-index');

$html = $this->html($body);

Expand Down

0 comments on commit d8d106d

Please sign in to comment.