Outline ·
[ Standard ] ·
Linear+
User agent list
TSmyomega
|
Apr 22 2014, 03:04 PM, updated 10y ago
|
Getting Started
|
I need to import all the user agent list into my database, may I know where can download all user agent list? As I see there is few webpages are providing user agent information but they are not able to store all user agent into my database.
|
|
|
|
malleus
|
Apr 22 2014, 03:05 PM
|
|
first you need to describe what is a user agent list
|
|
|
|
TSmyomega
|
Apr 22 2014, 03:40 PM
|
Getting Started
|
QUOTE(malleus @ Apr 22 2014, 03:05 PM) first you need to describe what is a user agent list Just get normal information like, browser, os version, phone type and etc
|
|
|
|
bumpo
|
Apr 22 2014, 04:45 PM
|
|
why cant it be stored into your db? This post has been edited by bumpo: Apr 22 2014, 04:45 PM
|
|
|
|
singeryoon
|
Apr 22 2014, 04:47 PM
|
Getting Started
|
directly get the info from their API, for example http://www.useragentstring.com/pages/api.phpjust parse the JSON and then use backend scripting to save the data into db.
|
|
|
|
sunsuron
|
Apr 22 2014, 04:54 PM
|
|
You might also want to take a look at http://browscap.org/
|
|
|
|
TSmyomega
|
Apr 22 2014, 05:50 PM
|
Getting Started
|
QUOTE(sunsuron @ Apr 22 2014, 04:54 PM) You might also want to take a look at http://browscap.org/This is good but it doesn't have the device model.
|
|
|
|
alien3d
|
Apr 22 2014, 07:59 PM
|
|
QUOTE(myomega @ Apr 22 2014, 03:04 PM) I need to import all the user agent list into my database, may I know where can download all user agent list? As I see there is few webpages are providing user agent information but they are not able to store all user agent into my database. i used maxmind. got open source and update.. seem good in my system .
|
|
|
|
TSmyomega
|
Apr 22 2014, 09:02 PM
|
Getting Started
|
QUOTE(alien3d @ Apr 22 2014, 07:59 PM) i used maxmind. got open source and update.. seem good in my system . Can you provide the URL coz I can see any user agent script/API at their website.
|
|
|
|
alien3d
|
Apr 22 2014, 10:25 PM
|
|
QUOTE(myomega @ Apr 22 2014, 09:02 PM) Can you provide the URL coz I can see any user agent script/API at their website. Dont be lazy lol.search maxmind geo ip im writing phone lol.if you can see why need i show?
|
|
|
|
TSmyomega
|
Apr 23 2014, 03:15 PM
|
Getting Started
|
QUOTE(alien3d @ Apr 22 2014, 10:25 PM) Dont be lazy lol.search maxmind geo ip im writing phone lol.if you can see why need i show? I think we need to pay only can use the user agent service. Coz the free service only for IP location checking.
|
|
|
|
alien3d
|
Apr 23 2014, 03:50 PM
|
|
QUOTE(myomega @ Apr 23 2014, 03:15 PM) I think we need to pay only can use the user agent service. Coz the free service only for IP location checking. .. because you think,programmer find la.. so lazy mah http://dev.maxmind.com/geoip/geoip2/downlo...e/#MaxMind_APIsRead and download. i have said i used it lol
|
|
|
|
TSmyomega
|
Apr 23 2014, 04:40 PM
|
Getting Started
|
QUOTE(alien3d @ Apr 23 2014, 03:50 PM) I try with this demo http://www.maxmind.com/en/geoip_demo like what you provide. Seem it only provide your IP information like location, country, ISP and etc. What I need is something like this CODE Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36 system will find the user agent string to define what browser, system, software version and etc you use. This is one of the example http://www.useragentstring.com/index.php but I need all the data in my database no parse from web.
|
|
|
|
alien3d
|
Apr 23 2014, 04:51 PM
|
|
QUOTE(myomega @ Apr 23 2014, 04:40 PM) I try with this demo http://www.maxmind.com/en/geoip_demo like what you provide. Seem it only provide your IP information like location, country, ISP and etc. What I need is something like this CODE Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36 system will find the user agent string to define what browser, system, software version and etc you use. This is one of the example http://www.useragentstring.com/index.php but I need all the data in my database no parse from web. I used maxmind and uas parser http://user-agent-string.info/download/UASparser-for-PHPCODE /** * Internet Protocol Information * @return mixed $browserInformation */ public function getInternetProtocolInformation() { $gi = geoip_open($this->getFakeDocumentRoot() . "library/geo/GeoLiteCity.dat", GEOIP_STANDARD); //preventing up looping on local testing if ($this->getInternetProtocolAddress() != '::1' && $this->getInternetProtocolAddress() != '127.0.0.1') { $record = geoip_record_by_addr($gi, $this->getInternetProtocolAddress()); } return $record; } /** * Browser Information * @return mixed $browserInformation */ public function getBrowserInformation() { $parser = new \UASparser(); $parser->SetCacheDir($this->getFakeDocumentRoot() . "library/uas/cache/"); return $parser->Parse(); } $record = $this->getInternetProtocolInformation(); $ret = $this->getBrowserInformation();
This only part sample i can give to you .. .. keep finding lol.
|
|
|
|