#CURL Connections with Tor
Install Apache, PHP, CURL & Tor with apt-get
sudo apt-get install -y apache2 php5 php5-curl torTor creates a proxy on your mashine with port 9050 for SOCKS5 connections.
| /* | |
| *** Academy Engraved LET *** | |
| AcademyEngravedLetPlain | |
| --------------------- | |
| *** Al Nile *** | |
| AlNile | |
| AlNile-Bold | |
| --------------------- | |
| *** American Typewriter *** | |
| AmericanTypewriter |
| <?php | |
| /** | |
| * Performs a search | |
| * | |
| * This class is used to perform search functions in a MySQL database | |
| * | |
| * @version 1.0 | |
| * @author John Morris <[email protected]> | |
| */ | |
| class search { |
#CURL Connections with Tor
Install Apache, PHP, CURL & Tor with apt-get
sudo apt-get install -y apache2 php5 php5-curl torTor creates a proxy on your mashine with port 9050 for SOCKS5 connections.
| from random import choice | |
| from scrapy import signals | |
| from scrapy.exceptions import NotConfigured | |
| class RotateUserAgentMiddleware(object): | |
| """Rotate user-agent for each request.""" | |
| def __init__(self, user_agents): | |
| self.enabled = False | |
| self.user_agents = user_agents |
| # ---------------------------------------------- | |
| # Quick method: | |
| # ---------------------------------------------- | |
| Options +MultiViews | |
| # With Apache MultiViews, the server will look for files that match the requested resource (eg. a request for "site.com/page" will serve "site.com/page.php") | |
| # ---------------------------------------------- | |
| # Long method: |