Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7805653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:17:24+00:00 2026-06-02T02:17:24+00:00

I am new to python…you are warned. I copied an example from http://wiki.python.org/moin/RssLibraries but

  • 0

I am new to python…you are warned.

I copied an example from http://wiki.python.org/moin/RssLibraries but I keep getting the error

"future_calls = [Future(feedparser.parse,rss_url) for rss_url in hit_list]
TypeError: __init__() takes exactly 1 argument (3 given)"

Here is my code:

import feedparser
from futures import Future


hit_list = [ "http://feeds.reuters.com/news/artsculture", "http://feeds.reuters.com/reuters/healthNews" ] # list of feeds to pull down

# pull down all feeds
future_calls = [Future(feedparser.parse,rss_url) for rss_url in hit_list]
# block until they are all in
feeds = [future_obj() for future_obj in future_calls]

entries = []
for feed in feeds:
    entries.extend( feed[ "item" ] )
    sorted_entries = sorted(entries, key=lambda entry: entry["title"])
    print sorted_entries
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T02:17:25+00:00Added an answer on June 2, 2026 at 2:17 am

    Are you sure you’re using the right modules? You have:

    from futures import Future
    

    but if you mean to use the module from the RssLibraries page you linked to, then it should be

    from future import Future
    

    (and you’ll need to download the future module from the link on that page).

    It looks like you’re actually using the futures module which is a back port of the Python 3 concurrent.futures module for earlier version of Python.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having trouble understanding the documentation of os.times() . From http://docs.python.org/library/os.html : Return a
I'm a new Python programmer who is making the leap from 2.6.4 to 3.1.1.
I am very new to python and have no idea what I'm doing but
I was following this quickstart guide: http://devcenter.heroku.com/articles/python but when I got to the part
so new to python & django moving along nice on a project but cant
I re-installed Python 2.7 with the official DMG installer from python.org because I needed
I am not that really new in Programming but in Python I am really
Possible Duplicate: How do you read from stdin in python I am new Python
I'm a new Python programmer who is having a little trouble using 'self' in
New to Python, have a simple, situational question: Trying to use BeautifulSoup to parse

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.