Skip to content

Commit

Permalink
~ project renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
vantoozz committed Jun 30, 2017
1 parent c2ea202 commit 8c26754
Show file tree
Hide file tree
Showing 47 changed files with 215 additions and 215 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Free proxy scraper library

[![Build Status](https://travis-ci.org/vantoozz/proxy-scrapper.svg?branch=master)](https://travis-ci.org/vantoozz/proxy-scrapper)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/c1e973dc35fc476aa4dc5d5a99781703)](https://www.codacy.com/app/vantoozz/proxy-scrapper)
[![Coverage Status](https://coveralls.io/repos/github/vantoozz/proxy-scrapper/badge.svg?branch=master)](https://coveralls.io/github/vantoozz/proxy-scrapper?branch=master)
[![Build Status](https://travis-ci.org/vantoozz/proxy-scraper.svg?branch=master)](https://travis-ci.org/vantoozz/proxy-scraper)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/4b3e0816e98d486e9f0eff445a6310c6)](https://www.codacy.com/app/vantoozz/proxy-scraper?utm_source=github.com&utm_medium=referral&utm_content=vantoozz/proxy-scraper&utm_campaign=Badge_Grade)
[![Coverage Status](https://coveralls.io/repos/github/vantoozz/proxy-scraper/badge.svg?branch=master)](https://coveralls.io/github/vantoozz/proxy-scraper?branch=master)

[![SensioLabsInsight](https://insight.sensiolabs.com/projects/d5cffc7f-030f-49b3-ac7f-3769db037ee7/big.png)](https://insight.sensiolabs.com/projects/d5cffc7f-030f-49b3-ac7f-3769db037ee7)

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@
},
"autoload": {
"psr-4": {
"Vantoozz\\ProxyScrapper\\": [
"Vantoozz\\ProxyScraper\\": [
"src/"
]
}
},
"autoload-dev": {
"psr-4": {
"Vantoozz\\ProxyScrapper\\UnitTests\\": [
"Vantoozz\\ProxyScraper\\UnitTests\\": [
"tests/unit"
],
"Vantoozz\\ProxyScrapper\\IntegrationTests\\": [
"Vantoozz\\ProxyScraper\\IntegrationTests\\": [
"tests/integration"
]
}
Expand Down
4 changes: 2 additions & 2 deletions src/Enums/Http.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php declare(strict_types = 1);

namespace Vantoozz\ProxyScrapper\Enums;
namespace Vantoozz\ProxyScraper\Enums;

/**
* Class Http
* @package Vantoozz\ProxyScrapper\Enums
* @package Vantoozz\ProxyScraper\Enums
*/
abstract class Http
{
Expand Down
6 changes: 3 additions & 3 deletions src/Exceptions/HttpClientException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php declare(strict_types = 1);

namespace Vantoozz\ProxyScrapper\Exceptions;
namespace Vantoozz\ProxyScraper\Exceptions;

/**
* Class HttpClientException
* @package Vantoozz\ProxyScrapper\Exceptions
* @package Vantoozz\ProxyScraper\Exceptions
*/
class HttpClientException extends ProxyScrapperException
class HttpClientException extends ProxyScraperException
{
}
6 changes: 3 additions & 3 deletions src/Exceptions/InvalidArgumentException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php declare(strict_types = 1);

namespace Vantoozz\ProxyScrapper\Exceptions;
namespace Vantoozz\ProxyScraper\Exceptions;

/**
* Class InvalidArgumentException
* @package Vantoozz\ProxyScrapper\Exceptions
* @package Vantoozz\ProxyScraper\Exceptions
*/
class InvalidArgumentException extends ProxyScrapperException
class InvalidArgumentException extends ProxyScraperException
{
}
11 changes: 11 additions & 0 deletions src/Exceptions/ProxyScraperException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php declare(strict_types = 1);

namespace Vantoozz\ProxyScraper\Exceptions;

/**
* Class ProxyScraperException
* @package Vantoozz\ProxyScraper\Exceptions
*/
class ProxyScraperException extends \Exception
{
}
11 changes: 0 additions & 11 deletions src/Exceptions/ProxyScrapperException.php

This file was deleted.

6 changes: 3 additions & 3 deletions src/Exceptions/RuntimeException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php declare(strict_types = 1);

namespace Vantoozz\ProxyScrapper\Exceptions;
namespace Vantoozz\ProxyScraper\Exceptions;

/**
* Class RuntimeException
* @package Vantoozz\ProxyScrapper\Exceptions
* @package Vantoozz\ProxyScraper\Exceptions
*/
class RuntimeException extends ProxyScrapperException
class RuntimeException extends ProxyScraperException
{
}
6 changes: 3 additions & 3 deletions src/Exceptions/ScraperException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php declare(strict_types = 1);

namespace Vantoozz\ProxyScrapper\Exceptions;
namespace Vantoozz\ProxyScraper\Exceptions;

/**
* Class ScraperException
* @package Vantoozz\ProxyScrapper\Exceptions
* @package Vantoozz\ProxyScraper\Exceptions
*/
class ScraperException extends ProxyScrapperException
class ScraperException extends ProxyScraperException
{
}
4 changes: 2 additions & 2 deletions src/HttpClient/HttpClientInterface.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php declare(strict_types = 1);

namespace Vantoozz\ProxyScrapper\HttpClient;
namespace Vantoozz\ProxyScraper\HttpClient;

/**
* Interface HttpClientInterface
* @package Vantoozz\ProxyScrapper\HttplugHttpClient
* @package Vantoozz\ProxyScraper\HttplugHttpClient
*/
interface HttpClientInterface
{
Expand Down
8 changes: 4 additions & 4 deletions src/HttpClient/HttplugHttpClient.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?php declare(strict_types = 1);

namespace Vantoozz\ProxyScrapper\HttpClient;
namespace Vantoozz\ProxyScraper\HttpClient;

use Http\Client\Exception as ClientException;
use Http\Client\HttpClient as Client;
use Http\Message\MessageFactory;
use Vantoozz\ProxyScrapper\Enums\Http;
use Vantoozz\ProxyScrapper\Exceptions\HttpClientException;
use Vantoozz\ProxyScraper\Enums\Http;
use Vantoozz\ProxyScraper\Exceptions\HttpClientException;

/**
* Class HttplugHttpClient
* @package Vantoozz\ProxyScrapper
* @package Vantoozz\ProxyScraper
*/
final class HttplugHttpClient implements HttpClientInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Ipv4.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php declare(strict_types = 1);

namespace Vantoozz\ProxyScrapper;
namespace Vantoozz\ProxyScraper;

use Vantoozz\ProxyScrapper\Exceptions\InvalidArgumentException;
use Vantoozz\ProxyScraper\Exceptions\InvalidArgumentException;

/**
* Class Ipv4
* @package Vantoozz\ProxyScrapper
* @package Vantoozz\ProxyScraper
*/
final class Ipv4
{
Expand Down
6 changes: 3 additions & 3 deletions src/Port.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php declare(strict_types = 1);

namespace Vantoozz\ProxyScrapper;
namespace Vantoozz\ProxyScraper;

use Vantoozz\ProxyScrapper\Exceptions\InvalidArgumentException;
use Vantoozz\ProxyScraper\Exceptions\InvalidArgumentException;

/**
* Class Port
* @package Vantoozz\ProxyScrapper
* @package Vantoozz\ProxyScraper
*/
final class Port
{
Expand Down
4 changes: 2 additions & 2 deletions src/Proxy.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php declare(strict_types = 1);

namespace Vantoozz\ProxyScrapper;
namespace Vantoozz\ProxyScraper;

/**
* Class Proxy
* @package Vantoozz\ProxyScrapper
* @package Vantoozz\ProxyScraper
*/
final class Proxy
{
Expand Down
6 changes: 3 additions & 3 deletions src/ProxyString.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php declare(strict_types = 1);

namespace Vantoozz\ProxyScrapper;
namespace Vantoozz\ProxyScraper;

use Vantoozz\ProxyScrapper\Exceptions\InvalidArgumentException;
use Vantoozz\ProxyScraper\Exceptions\InvalidArgumentException;

/**
* Class ProxyFactory
* @package Vantoozz\ProxyScrapper
* @package Vantoozz\ProxyScraper
*/
final class ProxyString
{
Expand Down
20 changes: 10 additions & 10 deletions src/Scrapers/AbstractFreeProxyListScraper.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?php declare(strict_types = 1);

namespace Vantoozz\ProxyScrapper\Scrapers;
namespace Vantoozz\ProxyScraper\Scrapers;

use Symfony\Component\DomCrawler\Crawler as Dom;
use Vantoozz\ProxyScrapper\Exceptions\HttpClientException;
use Vantoozz\ProxyScrapper\Exceptions\ScraperException;
use Vantoozz\ProxyScrapper\HttpClient\HttpClientInterface;
use Vantoozz\ProxyScrapper\Ipv4;
use Vantoozz\ProxyScrapper\Port;
use Vantoozz\ProxyScrapper\Proxy;
use Vantoozz\ProxyScraper\Exceptions\HttpClientException;
use Vantoozz\ProxyScraper\Exceptions\ScraperException;
use Vantoozz\ProxyScraper\HttpClient\HttpClientInterface;
use Vantoozz\ProxyScraper\Ipv4;
use Vantoozz\ProxyScraper\Port;
use Vantoozz\ProxyScraper\Proxy;

/**
* Class AbstractFreeProxyListScraper
* @package Vantoozz\ProxyScrapper\Scrapers
* @package Vantoozz\ProxyScraper\Scrapers
*/
abstract class AbstractFreeProxyListScraper
{
Expand All @@ -33,7 +33,7 @@ public function __construct(HttpClientInterface $httpClient)
/**
* @return \Generator|Proxy[]
* @throws \RuntimeException if the CssSelector Component is not available
* @throws \Vantoozz\ProxyScrapper\Exceptions\ScraperException
* @throws \Vantoozz\ProxyScraper\Exceptions\ScraperException
*/
public function get(): \Generator
{
Expand All @@ -59,7 +59,7 @@ public function get(): \Generator
* @return Proxy
* @throws \RuntimeException
* @throws \InvalidArgumentException
* @throws \Vantoozz\ProxyScrapper\Exceptions\InvalidArgumentException
* @throws \Vantoozz\ProxyScraper\Exceptions\InvalidArgumentException
*/
private function makeProxy(Dom $row): Proxy
{
Expand Down
4 changes: 2 additions & 2 deletions src/Scrapers/FreeProxyListScraper.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php declare(strict_types = 1);

namespace Vantoozz\ProxyScrapper\Scrapers;
namespace Vantoozz\ProxyScraper\Scrapers;

/**
* Class FreeProxyListScraper
* @package Vantoozz\ProxyScrapper\Scrapers
* @package Vantoozz\ProxyScraper\Scrapers
*/
final class FreeProxyListScraper extends AbstractFreeProxyListScraper
{
Expand Down
22 changes: 11 additions & 11 deletions src/Scrapers/HideMyIpScraper.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?php declare(strict_types = 1);

namespace Vantoozz\ProxyScrapper\Scrapers;
namespace Vantoozz\ProxyScraper\Scrapers;

use Vantoozz\ProxyScrapper\Exceptions\HttpClientException;
use Vantoozz\ProxyScrapper\Exceptions\InvalidArgumentException;
use Vantoozz\ProxyScrapper\Exceptions\ScraperException;
use Vantoozz\ProxyScrapper\HttpClient\HttpClientInterface;
use Vantoozz\ProxyScrapper\Ipv4;
use Vantoozz\ProxyScrapper\Port;
use Vantoozz\ProxyScrapper\Proxy;
use Vantoozz\ProxyScraper\Exceptions\HttpClientException;
use Vantoozz\ProxyScraper\Exceptions\InvalidArgumentException;
use Vantoozz\ProxyScraper\Exceptions\ScraperException;
use Vantoozz\ProxyScraper\HttpClient\HttpClientInterface;
use Vantoozz\ProxyScraper\Ipv4;
use Vantoozz\ProxyScraper\Port;
use Vantoozz\ProxyScraper\Proxy;

/**
* Class HideMyIpScraper
* @package Vantoozz\ProxyScrapper\Scrapers
* @package Vantoozz\ProxyScraper\Scrapers
*/
final class HideMyIpScraper implements ScraperInterface
{
Expand All @@ -37,7 +37,7 @@ public function __construct(HttpClientInterface $httpClient)

/**
* @return \Generator|Proxy[]
* @throws \Vantoozz\ProxyScrapper\Exceptions\ScraperException
* @throws \Vantoozz\ProxyScraper\Exceptions\ScraperException
*/
public function get(): \Generator
{
Expand Down Expand Up @@ -89,7 +89,7 @@ private function extractData(string $html): array
/**
* @param array $item
* @return Proxy
* @throws \Vantoozz\ProxyScrapper\Exceptions\InvalidArgumentException
* @throws \Vantoozz\ProxyScraper\Exceptions\InvalidArgumentException
*/
private function makeProxy(array $item): Proxy
{
Expand Down
4 changes: 2 additions & 2 deletions src/Scrapers/MultiproxyScraper.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php declare(strict_types = 1);

namespace Vantoozz\ProxyScrapper\Scrapers;
namespace Vantoozz\ProxyScraper\Scrapers;

/**
* Class MultiproxyScraper
* @package Vantoozz\ProxyScrapper\Scrapers
* @package Vantoozz\ProxyScraper\Scrapers
*/
final class MultiproxyScraper extends RemoteTextScraper
{
Expand Down
20 changes: 10 additions & 10 deletions src/Scrapers/ProxyDbScraper.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?php declare(strict_types = 1);

namespace Vantoozz\ProxyScrapper\Scrapers;
namespace Vantoozz\ProxyScraper\Scrapers;

use Symfony\Component\DomCrawler\Crawler as Dom;
use Vantoozz\ProxyScrapper\Exceptions\HttpClientException;
use Vantoozz\ProxyScrapper\Exceptions\ScraperException;
use Vantoozz\ProxyScrapper\HttpClient\HttpClientInterface;
use Vantoozz\ProxyScrapper\Proxy;
use Vantoozz\ProxyScrapper\ProxyString;
use Vantoozz\ProxyScraper\Exceptions\HttpClientException;
use Vantoozz\ProxyScraper\Exceptions\ScraperException;
use Vantoozz\ProxyScraper\HttpClient\HttpClientInterface;
use Vantoozz\ProxyScraper\Proxy;
use Vantoozz\ProxyScraper\ProxyString;

/**
* Class ProxyDbScraper
* @package Vantoozz\ProxyScrapper\Scrapers
* @package Vantoozz\ProxyScraper\Scrapers
*/
final class ProxyDbScraper implements ScraperInterface
{
Expand All @@ -36,7 +36,7 @@ public function __construct(HttpClientInterface $httpClient)
/**
* @return \Generator|Proxy[]
* @throws \RuntimeException
* @throws \Vantoozz\ProxyScrapper\Exceptions\ScraperException
* @throws \Vantoozz\ProxyScraper\Exceptions\ScraperException
*/
public function get(): \Generator
{
Expand All @@ -53,7 +53,7 @@ public function get(): \Generator
* @param int $pageSize
* @return \Generator
* @throws \RuntimeException if the CssSelector Component is not available
* @throws \Vantoozz\ProxyScrapper\Exceptions\ScraperException
* @throws \Vantoozz\ProxyScraper\Exceptions\ScraperException
*/
private function getPage(int $offset, int $pageSize): \Generator
{
Expand All @@ -79,7 +79,7 @@ private function getPage(int $offset, int $pageSize): \Generator
* @return Proxy
* @throws \RuntimeException
* @throws \InvalidArgumentException
* @throws \Vantoozz\ProxyScrapper\Exceptions\InvalidArgumentException
* @throws \Vantoozz\ProxyScraper\Exceptions\InvalidArgumentException
*/
private function makeProxy(Dom $tr): Proxy
{
Expand Down
Loading

0 comments on commit 8c26754

Please sign in to comment.