PHP Classes

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

Recommend this page to a friend!
  Info   View files Example   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 52 All time: 10,589 This week: 136Up
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: 27 packages by
Country: Taiwan Taiwan
Age: 30
All time rank: 22666 in Taiwan Taiwan
Week rank: 312 Up2 in Taiwan Taiwan Up
Innovation award
Innovation award
Nominee: 13x

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  
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

 Version Control Unique User Downloads Download Rankings  
 100%
Total:52
This week:0
All time:10,589
This week:136Up