473,508 Members | 2,247 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Extract text from a Website Stats Widget

30 New Member
Hello:

I found a very nice Website Stats widget which I copy pasted into my site.

What I like about this widget is that not only tells you which URL, country, date, time, IP, refrerrer, etc, (that most website counters display today), but a very cool additional piece of information I haven't found in any other webiste counter. It displays the city where the visitor comes from.

You can see the widget here.

Well.. feedgit just changed the look and feel of the widget recently to where it doesnt look good in my website anymore, but I still would like to display the info in my page.

My home page where the widget is pasted is really a perl script. Is there a way to extract the text on this widget with a line of code and then I present it in this home page with the look and feel that matches my design..??

If not... just the same as there are an environment variables that tell you the visitor's referrer and the IP is there one that I can use to find out what city my visitor come from..??

Here is the widget
http://feedjit.com/fg/

Thanx beforehand
VirtualWeb

PS: until I find a way to delete this post here is a script that does what i was looking for... found it after posting this message.

Expand|Select|Wrap|Line Numbers
  1. <center>
  2. <script src="http://www.google.com/jsapi" type="text/javascript"></script><script type="text/javascript"><!--
  3. if (typeof(google.loader.ClientLocation.address.city) != null) {
  4.   document.write(google.loader.ClientLocation.address.city
  5.   +", "
  6.   +google.loader.ClientLocation.address.region);
  7. } else {
  8.   document.write("Walnut Creek, CA")
  9. }
  10. // --></script>
  11. </center>
  12.  
Jun 11 '10 #1
1 2073
numberwhun
3,509 Recognized Expert Moderator Specialist
@virtualweb Thanks for posting the solution you found. We don't generally delete posts because issues are resolved. We leave them around in case anyone else has a similar issue and can employ the solution you found, even with some minor changes.

Regards,

Jeff
Jun 30 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
12059
by: mickeydisn | last post by:
Sub: C++ Word automation Extract text hello. I want extact text form a word document using a visual c++ programme. I have see a lot of documentation. and my analysis is that I must use a...
1
3353
by: Klaus Jensen | last post by:
Hi! Is it possible to extract text from an EPS-file using .Net? In this scenario, I need to process ads stored as EPS-files and extract all text (for fulltext-indexing purposes). I looked into...
1
7733
by: Eric Apperley | last post by:
How do I draw rotated text in a Tkinter widget using the draw.text method? Alternatively, if I draw text as normal, how can I then subsequently rotate it about its start point?
0
1160
by: Joris De Groote | last post by:
Hi, I'm looking for some code to extract text from PDF files. Can somebody help me? Thanks Greetz
3
8817
by: Julien ARNOUX | last post by:
Hi, I have a problem :), I just want to extract text from pdf file with python. There is differents libraries for that but it doesn't work... pyPdf and pdfTools, I don't know why but it doesn't...
9
7288
by: trihanhcie | last post by:
Hi, I would like to extract the text in an HTML file For the moment, I'm trying to get all text between <tdand </td>. I used a regular expression because i don't know the "format between...
2
2302
by: Case | last post by:
I'm looking for help, on how to extract text between parens. The text before and after does not remain constant in length. Any ideas? For example I trying to pull out 123456789 from:...
0
1472
by: Dominic | last post by:
I need to extract text by using Visio IFilter. Actually, I am using Visio IFilter and it works when I manually install Visio IFilter component before/after install my application. But I don't...
1
4779
by: Alberto Sartori | last post by:
Hello, I have a html text with custom tags which looks like html comment, such: "text text text <p>text</ptext test test text text text <p>text</ptext test test <!-- @MyTag@ -->extract...
5
10067
by: undbund | last post by:
Hi guys, can you guide me to tutorials, examples and scripts where I can learn how to extract text, images, etc from pdf file. Thanks Undbund
0
7231
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7132
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7336
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7401
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7063
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4720
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3211
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3196
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.