PHP Classes

104 Jobs: Get details about jobs posted in the 104 Jobs site

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 53 All time: 10,641 This week: 455Up
Version License PHP version Categories
php-104-jobs 1.0.0MIT/X Consortium ...5PHP 5, Web services
Description 

Author

This class can get details about jobs posted in the 104 Jobs site.

It can send HTTP requests to the Web server of the 104 Jobs site to retrieve pages that display information about the jobs posted there.

The class can parse the retrieved pages and extract details like the job name and the job page link.

Picture of Chun-Sheng, Li
  Performance   Level  
Name: Chun-Sheng, Li <contact>
Classes: 37 packages by
Country: Taiwan Taiwan
Age: 31
All time rank: 21066 in Taiwan Taiwan
Week rank: 10 Up1 in Taiwan Taiwan Up
Innovation award
Innovation award
Nominee: 17x

Winner: 1x

Example

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
</head>
<body>
<?php

set_time_limit
(0);

require
'vendor/autoload.php';
require
'JobDetail.php';

use
peter\JobDetail\JobDetail;

$detail = new JobDetail();

$jobs = $detail->printResult();
$len = count($jobs);
$baseUrl = 'https://www.104.com.tw';
echo
'<table>';
echo
'<tr><th>????</th><th>??</th></tr>';

for(
$index=0;$index<$len;$index++) {
    echo
'<tr>';
    echo
'<td>'.$jobs[$index]['job_name'].'</td>';
    echo
'<td><a href="'.$baseUrl.$jobs[$index]['job_link'].'" target="_blank">'.$jobs[$index]['job_name'].'</a></td>';
    echo
'</tr>';
}
echo
'</table>';
?>
</body>
</htm1>


Details

104-jobs

Help you get the jobs lists easily!

Usage

- clone the repository. - run `php crawler.php ` to get the RD jobs. - run ` php -S localhost:8000 -t ~/Desktop/104-jobs index.php ` to get the result table through the web browser. - enjoy it!


  Files folder image Files (7)  
File Role Description
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file crawler.php Example Example script
Accessible without login Plain text file index.php Example Example script
Plain text file JobDetail.php Class Class source
Accessible without login Plain text file rd_jobs.json Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:53
This week:0
All time:10,641
This week:455Up