473,585 Members | 2,496 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 2087
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
12070
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 "word automation". I have foud a lot of exemple to use it but I need your precious help to
1
3362
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 OCR, but that is too expensive for this project (> 5000$). Any help and pointers would be greatly appreciated.
1
7751
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
1166
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
8825
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 works with some pdf... For example space chars are delete in the text.. Pdf playground : I don't understand how it work. If you have an idea, a...
9
7294
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 <tdand </td> It can be : <tdtext1 </td> or
2
2309
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: http://www.thescripts.com/forum/(12345769)newthread.php?do=newthread&f=129 But "http://www.thescripts.com/forum/" and "newthread.php?do=newthread&f=129"...
0
1483
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 need my users to install application 2 times, one for my application, another is visio ifilter. I need to install only my application for one...
1
4783
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 this<!-- /@MyTag@ --> text text text <p>text</ptext test test <!-- @MyTag@ -->and this<!-- /@MyTag@ --> text text text <p>text</ptext test test"
5
10080
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
7908
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8199
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
6606
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5389
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3835
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2343
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1175
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.