Skip to content

Instantly share code, notes, and snippets.

@ichigo92
ichigo92 / crawler.php
Last active March 17, 2023 05:58
PHP Crawler using CURL
<?php
//url
$redirect = "http://www.eyeofriyadh.com/events/";
$event = getEvents($redirect);
echo "Dates are : <br>" . $event;
id name original temperature description icon
1 London London 6.57 clear sky 02n
2 Islamabad Islamabad 14.44 few clouds 02n
3 Tehran Tehran 13.46 broken clouds 04n
4 Madrid Madrid 11.11 clear sky 01n
5 Tokyo Tokyo 9.33 broken clouds 04d
6 Mexico City Mexico City 25 few clouds 02n
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 16 columns, instead of 13. in line 4.
Id,ServiceApprovalNumber,Provider Approval Number,ServiceName,ProviderLegalName,ServiceAddress,Suburb,State,Postcode,Phone,Fax,Email Address,Conditions on Approval,NumberOfApprovedPlaces,OverallRating,Type
1,SE-00004331,PR-00002348,123KIDS,The Trustee for 4Kids Family Trust,107-113 Hallam Road,HAMPTON PARK,VIC,3976,03 9799 9799,03 9799 9699,pk90@hotmail.com,,153,Meeting NQS,Childcare centre
2,SE-00012357,PR-00007188,124 Early Learning Centre,About Child Care Pty Ltd,17 Fraser Entrance,GREENFIELDS,WA,6210,9534 9225,9534 9230,124earlylearningcentre@gmail.com,.,37,Meeting NQS,Childcare centre
3,SE-00009863,PR-40001591,1912 Child Care and Education Centre,JOMARK ENTERPRISES PTY LTD,52 Steele Street,DEVONPORT,TAS,7310,03 6423 3885,03 6423 3887,jodie@1912childcare.com.au,Age range: 0 to 12 years.,120,Meeting NQS,Childcare centre
4,SE-40000602,PR-40000559,24/7 Family Day Care,Lloyd Creek Pty Ltd,Suite 18 Village Walk Business Centre 121 High St,EAST MAITLAND,NSW,2323,249347701,,karenadrinan@hotmail.com,The approve
id name album
bab3ac3a-5268-11e9-8647-d663bd873d93 Talha Modest
@ichigo92
ichigo92 / redis.conf
Created January 13, 2020 12:47
Redis configuration for Openvas
# Redis configuration file example.
#
# Note that in order to read the configuration file, Redis must be
# started with the file path as first argument:
#
# ./redis-server /path/to/redis.conf
# Note on units: when memory size is needed, it is possible to specify
# it in the usual form of 1k 5GB 4M and so forth:
#