The part I'm not understanding is how to find the "best" match. My UA string matches 32bit and 64bit Windows (WOW64).
Existing Python and PHP projects do special processing of the file, and rebuilding the original data line turned into a gigantic hassle, which is why I'm re-writing.
Any suggestions?
Thanks
--
You received this message because you are subscribed to the Google Groups "browscap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to browscap+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Well I got my splunk app working and submitted to them for acceptance. This is what I came up with:
https://github.com/tnwinc/TA-browscap_express
The comments in browscap_lookup.py explain what I was doing pretty well. My big unknown is handling generics. I want to cache "Generic Java Crawler" but not "Chrome Generic". If "Chrome Generic" ever becomes "Generic Chrome" I'm in trouble.
The CSV file is not in order of detail. You have to use the longest matched string to get the winner. Still, this app is super fast compared to the others, and the browscap data is the best there is.
Cheers,
Rob
My "good enough for now" quickie solution was to sort the file by line length in descending order.
Ben
You received this message because you are subscribed to a topic in the Google Groups "browscap" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/browscap/VkIYev3p6WA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to browscap+u...@googlegroups.com.
I believe that is how the browscap/browscap-php library works anyway :)
Thanks
James