473,667 Members | 2,568 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Meerkat script suddenly fails: output format changed?

For quite a while now I've been filling part of the navigation-bar on my
home page with Python-related news extracted from O'Reilly's meerkat
service.

I've been experiencing intermittent problems for the past few days, and now
suddenly the crontab-triggered script has stopped working completely,
apparently due to a change in what Meerkat sends in response to my queries.
I've not been able to find any description af changes to Meerkat, but since
my script appears to have been unchanged for over six weeks and this error
has only just appeared, I can only assume this represent searching
ineptitude on my part.

The relevant extracts from the script are:

# Get a list of article categories from the O'Reilly Network
items = server.meerkat. getItems(
{'search':'/[Pp]ython/','num_items':1 0,'descriptions ':100})

and

print >> out, "<BR>\n".jo in(
["""<A href="%(link)s" class="link" target="news_wi n">%(title)s </A>
""" % item for item in items]

It's this last statement which is now failing, with a KeyError because
there's no "link" key in the items returned by the call to
server.meerkat. getitems(). Printing out the list of items confirms this,
with what I can only describe as a somewhat-unexpected output:

{'description': "Senator Kennedy's new inaccessible web site. On writing for
the web. The Python path module. The art", 'title': 'In brief: Superbowl
Sunday'}
{'description': "Senator Kennedy's new inaccessible web site. On writing for
the web. The Python path module. The art", 'title': 'In brief: Superbowl
Sunday'}
{'description': "Senator Kennedy's new inaccessible web site. On writing for
the web. The Python path module. The art", 'title': 'In brief: Superbowl
Sunday'}
{'description': "Senator Kennedy's new inaccessible web site. On writing for
the web. The Python path module. The art", 'title': 'In brief: Superbowl
Sunday'}
{'description': "Senator Kennedy's new inaccessible web site. On writing for
the web. The Python path module. The art", 'title': 'In brief: Superbowl
Sunday'}
{'description': "Senator Kennedy's new inaccessible web site. On writing for
the web. The Python path module. The art", 'title': 'In brief: Superbowl
Sunday'}
{'description': "Senator Kennedy's new inaccessible web site. On writing for
the web. The Python path module. The art", 'title': 'In brief: Superbowl
Sunday'}
{'description': "Senator Kennedy's new inaccessible web site. On writing for
the web. The Python path module. The art", 'title': 'In brief: Superbowl
Sunday'}
{'description': "Senator Kennedy's new inaccessible web site. On writing for
the web. The Python path module. The art", 'title': 'In brief: Superbowl
Sunday'}
{'description': "Senator Kennedy's new inaccessible web site. On writing for
the web. The Python path module. The art", 'title': 'In brief: Superbowl
Sunday'}

About the only thing I find reassuring about this output is the fact that it
explains the KeyError, and that

http://www.oreillynet.com/meerkat/

looks equally disoriented if you search for the string "python". What gives?

Can anyone tell me a) is this something I've done, or is it somebody else's
fault, and b) how the hell do I get back to the happy state where I can get
my Python news form my home page?

regards
--
Steve Holden http://www.holdenweb.com/
Python Web Programming http://pydish.holdenweb.com/pwp/

Jul 18 '05 #1
0 1653

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3175
by: allenj | last post by:
DB2 UDB 7.2 WSE Fixpak 9 Linux Red Hat 7.3 A very strange thing just happened w/ my DB2 server. I am on Linux and using NIS - the instance owner is in the servers /etc/passwd file. Suddenly, DB2 would not authenticate any NIS-based logins, but it *would* authenticate the local non-NIS instance owner. This was happening not only w/ local connections on the server, but also
4
7092
by: Corepaul | last post by:
I am working in Windows 2000 and Access 2000 and am a rookie in Access. Coding merrily along, I stop periodically to test that everything works. After adding a small amount of code to several events, when I try to run the form suddenly won't run. I get the message "The expression On Open you entered as the event property setting produced the following error: Constant Expression Required." Two possible reasons follow on the screen:
12
1731
by: melanieab | last post by:
Hi, I have a button that, when clicked, saves all the info entered. It worked fine until suddenly it didn't, and I have no idea why. I get the error An unhandled exception of type 'System.Xml.XmlException' occurred in system.xml.dll Additional information: System error. I found that this sometimes happens when there's some unrecognized character, so I even started with a new xml file, but it still won't work. It yells at me when I...
20
6957
by: weston | last post by:
I've got a piece of code where, for all the world, it looks like this fails in IE 6: hometab = document.getElementById('hometab'); but this succeeds: hometabemt = document.getElementById('hometab'); Has anyone ever seen anything like this before, or am I dreaming?
7
3188
by: mattrapoport | last post by:
Hello - I am kinda new to the HTML DOM so I apologize in advance for my ignorance. I have a table made from divs. I am trying to write a script that appends a new row to the table (by cloning the last row) and then adding some text to the fields in that row. My script works perfectly in IE but not even close in Firefox. Here's my HTML ... HTML:
3
2481
by: rsteph | last post by:
I have a script that shows the time and date. It's been working on my site for quite a while now. Suddenly it stops showing up, after getting my drop down menu to work. If I put text between the <div id="datetime"></div> tags, the text shows up, but the javascript output being sent to those some divs doesn't seem to want to work. It should be showing up in the middle of the content pane, just below the first table box. (set by .css) Here's...
1
3028
by: kristof.bonnast | last post by:
Hi all, I'm have a console app which is called by a thirth party system over 20000 times a day. This console app links to a webservice on another server to capture information. This works fine for several weeks, but after some time I receive following error: System.InvalidOperationException: Unable to generate a temporary class (result=1). error CS0016: Could not write to output file 'h:\temp\uwzshxmr.dll' --
3
9584
by: super.raddish | last post by:
Greetings, I am relatively new to, what I would call, advanced XSLT/XPath and I am after some advice from those in the know. I am attempting to figure out a mechanism within XSLT to compare the difference between two source documents and output node-sets which are "different" (changed or new) to new XML files using xsl:result-document To describe the problem I have provided some example data below along with my a portion of my current...
3
1728
by: David | last post by:
On Sun, May 4, 2008 at 4:43 AM, lev <levlozhkin@gmail.comwrote: Hi, I started tidying up the script a bit, but there are some parts I don't understand or look buggy. So I'm forwarding you the version I have so far. Look for the comments with my e-mail address in them for more information. If I have time I'll tidy up the script some more when I have more info about those issues.
0
8457
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8365
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8788
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8563
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7390
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5675
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2776
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
2
2013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1778
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.