Web scraping using PHP Simple HTML DOM Parser

Selesai Dipasang Oct 4, 2015 Dibayar saat pengiriman
Selesai Dibayar saat pengiriman

I struggle with selectors and all I am looking for code to scrape from the below websites into variables/arrays. To be done using the PHP Simple HTML DOM Parser library. I have used example pages that I would like you to use. Please note I want it coded properly so I can reuse the code on other fantasy manager’s teams. That means no tricks or work around that only work for the examples below.

The website to scrape [url removed, login to view]

$firstTeam – Stored in array this selector should scrape the first team 11. Resulting scrape would contain – [Butland,Francis,Kompany,Gomez,Mahrez,Yaya Touré,Pedro,Sánchez,Agüero,Wilson,Benteke]

$bench – Stored in an array this selector should scrape the bench players and = [McCarthy,Shaw,Surman,Cathcart]

$captain – scrape the captain into a variable and it should it = Agüero

$viceCaptain – scrape the vice-captain into a variable and it should = Benteke

New URL to scrape but it is still related to the same fantasy manager

[url removed, login to view]

$rank – scrape managers rank from game week 4. There should be logic in place so that only gameweek 4 rank is scraped so I can change this depending on the gameweek I want to scrape. The variable should = 979,772

$overallPoints – scrape managers overall points from game week 4. There should be logic in place so that only gameweek 4 OP is scraped so I can change this depending on the gameweek I want to scrape. The variable should = 167

$teamValue –scrape managers team value from game week 4. There should be logic in place so that only gameweek 4 TV is scraped so I can change this depending on the gameweek I want to scrape. The variable should = £[url removed, login to view]

$transferCost scrape managers transfer cost from game week 4. There should be logic in place so that only gameweek 4 TC is scraped so I can change this depending on the gameweek I want to scrape. The variable should = 4

$chips should scrape the whole ‘Chips’ table in HTML format. The variable should contain the whole HTML table, in this example it would be a table that showed -Wildcard Played GW3.

New URL to scrape but still related to same fantasy manager

[url removed, login to view]

$transferIn –An array that will scrape players transferred in for game week 4 only. It should contain logic so that it can be changed to work on different game weeks. Using the example the array will contain [Pedro,Wilson]

$transferOut –An array that will scrape players transferred out for game week 4 only. It should contain logic so that it can be changed to work on different game weeks. Using the example the array will contain [Depay,Deeney]

PHP Web Scraping

ID Proyek: #8611070

Tentang proyek

7 proposal Proyek online Aktif Oct 5, 2015

Diberikan kepada:

gangabass

This is pretty easy work for me; I can complete it in less than a day and I can offer you best price here. You'll get clean PHP code and excellent support from me. All I need to start is milestone payment from you. Lebih banyak

$35 USD dalam 1 hari
(194 Ulasan)
6.2

7 freelancer rata-rata menawar $74 untuk pekerjaan ini

mantislin

Hi sir, I am scraping expert, I have did too many similar projects, please check my feedback then you will know. Can you tell me more details? then I will provide demo data for you. Thanks, Kimi

$250 USD dalam 5 hari
(219 Ulasan)
7.1
flashsaiful

Hello Dear, I can do this for you. Please send a massage in the PMB for details.......Best Regards flashsaiful

$25 USD dalam 1 hari
(77 Ulasan)
5.8