XPATH

The XPATH(XML Path Language) is a query language from the W3C, it is used to select nodes in an XML file.

Full Path

In this example I start with “/” that say we start on root and then i navigate from element to element.

 

Anywhere

In this example I use the “//” to search in the full document to find all a nodes.(you could use the “//” behind a “/” like “/html/body/div//a” to find all elements in html body div.)

 

Attributes

you could use the “@” to find all elements wit the attribute class that is the string “secondarary”.

 

As example you could select all hrefs where the Attributes contains a string:

Or select all hrefs where the text from the URL contains a string:

 

Array

If you select all Elements you get an Array, in the example above I select the firs element from my result Array.You should avoid this, better is to navigate over the class or ID because if the Page changes a bit the XPATH don’t work any more.

 

That are some basics, if you need something special take a look into the Network or on my page.As example Web crawling in PHP or Perl.

PHP image upload

This is my image upload solution:

The name its stored is always an md5 hash of the file to avoid duplicate files.

php redirect to www

This shows how to make a php redirect from “url.com” to “www.url.com”.

PHP crawl example

This is a little example how to crawl a web page with PHP, in this example I crawl my own page with XPATH to get all titles.

This is our result, this are the matches from the XPATH:

To see this in Perl click: Perl crawl example.

P-Project

P-Project is a Porn Video Crawl Engine IN PHP AND PERL. Watch here new collected videos from different sites. You can register to our site to like and dislike videos and use the playlist feature.
We are currently searching for partner for Backlink change,Video share or traffic sharing.If you want to add a site,give feedback or have a question to our page, please support to our Administrator.

Start screen:

Bildschirmfoto vom 2014-11-25 20:26:11

Random Videos:

Bildschirmfoto vom 2014-11-17 21:23:14

Video Editor: Bildschirmfoto vom 2014-11-25 20:40:07

Amazone Store:Bildschirmfoto vom 2014-11-25 20:43:21

Web cams:Bildschirmfoto vom 2014-11-25 20:44:51

Mobile Site:index

Things from this project:

Generate Preview Jpeg/gif from Video

Sitemap Generator

WATCHDOG

main.pl

 P-Project CSS