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

  • Home
  • SEARCH
  • 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 8919287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:58:52+00:00 2026-06-15T05:58:52+00:00

I am using Python Twitter Tools API to try to add multiple members to

  • 0

I am using Python Twitter Tools API to try to add multiple members to a list using lists.members.create_all of Twitter API v1.1 but I am getting this error:

Twitter sent status 404 for URL: 1.1/lists/members/create_all.json
{“errors”:[{“message”:”Sorry, that page does not exist”,”code”:34}]}

Other calls work fine and adding single members to a list works fine. My code is below, would appreciate someone’s help on how to use lists.members.create_all correctly!

#!/usr/bin/python
from twitter import *

OAUTH_TOKEN = 'my oauth token'
OAUTH_SECRET = 'my oauth secret'
CONSUMER_KEY = 'my consumer key'
CONSUMER_SECRET = 'my consumer secret'

USERNAME =  "my username"
LIST_NAME = "fud"

def main():

  twitter = Twitter(api_version='1.1', auth=OAuth(OAUTH_TOKEN, OAUTH_SECRET, CONSUMER_KEY,     CONSUMER_SECRET))
  try:

    # view a users lists
    lists = twitter.lists.list(user=USERNAME)
    # create a list
    create_list = twitter.lists.create(name=LIST_NAME)
    # view list members
    list_members = twitter.lists.members(slug=LIST_NAME, owner_screen_name=USERNAME)
    # add single user to list
    twitter.lists.members.create(owner_screen_name=USERNAME, slug=LIST_NAME, screen_name="microsoft")

    # add multiple users to list - fails !!!
    twitter.lists.members.create_all(owner_screen_name=USERNAME, slug=LIST_NAME, screen_name="twitter,python")

  #Produces error:
  #Twitter sent status 404 for URL: 1.1/lists/members/create_all.json using parameters: 
  #{"errors":[{"message":"Sorry, that page does not exist","code":34}]}

  except TwitterHTTPError as twerr:
    import zlib
    print twerr, zlib.decompress(twerr.response_data, 16+zlib.MAX_WBITS) # gunzip response error info 

main()
  • 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-15T05:58:54+00:00Added an answer on June 15, 2026 at 5:58 am

    I believe that your call to create_all() is correct. The trick is that (the version I recently downloaded of) Python Twitter Tools defaults to a GET request rather than a POST request when it calls the Twitter API to create list members.

    The list of methods that require a POST is stored in twitter_globals.py. I added 'create_all'to the POST_ACTIONS list and that seemed to work.

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

Sidebar

Related Questions

I'm using python twitter to do a simple search but I'm not getting any
I am using Python and Requests to request data from Twitter's streaming API .
I am using tweepy (a python lib for twitter api) to create a twitter
Using Python how do you reduce a list of lists by an ordered subset
I have just started using the python-twitter API and it requires me to register
I am writing a python script on Linux for twitter post using API, Is
So, I just started mining twitter data using its python twitter api. And was
I've been trying to consume the Twitter Streaming API using Python Requests. There's a
I'm using Twython (Python wrapper for Twitter API, found here .) Objective: I'm trying
I am learning Python, and I want to start using Twitter's streaming API. I

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.