I am trying to loop over a dictionary of phone numbers and using a python
regex to determine if they are long distance or local and then adding them
to their appropriate dictionary, My regex doesn't appear to be working
though.
My regex's are these
international__iregex=r'^1?(011|001)' #A
I am trying to loop over a dictionary of phone numbers and using a python
regex to determine if they are long distance or local and then adding them
to their appropriate dictionary, My regex doesn't appear to be working
though.
My regex's are these
international__iregex=r'^1?(011|001)'
local__ire
ield':
'252', 'from': '9876662881', 'to': '19877760406', 'fpld': '"Brochsteins"
<9855562881>', 'result': 'ANSWERED', 'billsec': 131}, {'code': '51679',
i am trying to search a large Python dictionary for a matching value. The
results would need to be structured into a new dictionary with the same
structure. Thanks.
The structure is like this
{ Key : [{'item':value,'item2':value,'
item3':value,'item4':value,'item5':value','item6':value,'item7':va
Chris, Yes that is the correct syntax, thanks
On Tue, Sep 22, 2009 at 5:22 PM, Chris Rebert wrote:
> On Tue, Sep 22, 2009 at 2:50 PM, Support Desk
> wrote:
> > I need help searching a large python dictionary. The dictionary is setup
> > like so
> >
> >
> Key[{
I need help searching a large python dictionary. The dictionary is setup
like so
Key[{'item':value,'item2':value,'item3':value,'item4':value,'item5':value','item6':value,'item7':value,'item8':value,'item9':value}]
Key2[{'item':value,'item2':value,'item3':value,'item4':value,'item5':value','item6'
Sounds Interesting. When its done would you care to share it?
Sincerely,
Michael H.
-Original Message-
From: Philip Semanchuk [mailto:phi...@semanchuk.com]
Sent: Thursday, April 09, 2009 9:46 PM
To: Python
Subject: Re: Open source web crawler with mysql integration
On Apr 9, 2009, at
From: Ronn Ross [mailto:ronn.r...@gmail.com]
Sent: Tuesday, April 07, 2009 9:37 AM
To: Support Desk
Subject: Re: Scraping a web page
This works great, but is there a way to do this with firefox or something
similar so I can also print the images from the site?
On Tue, Apr 7, 2009 at 9:58
You could do something like below to get the rendered page.
Import os
site = 'website.com'
X = os.popen('lynx --dump %s' % site).readlines()
-Original Message-
From: Tim Chase [mailto:python.l...@tim.thechases.com]
Sent: Tuesday, April 07, 2009 7:45 AM
To: Ronn Ross
Cc: python-list
Thanks, I'm looking for something I can integrate into a simple game I'm
working on that will run in Linux.
-Original Message-
From: Shane Geiger [mailto:sgei...@councilforeconed.org]
Sent: Friday, February 27, 2009 9:09 AM
To: Support Desk
Cc: python-list@python.org
S
Does anybody know of a way to capture keystrokes form a wireless USB
keyboard using python?
--
http://mail.python.org/mailman/listinfo/python-list
-Original Message-
From: James Mills [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 26, 2008 5:26 PM
To: sonich
Cc: python-list@python.org
Subject: Re: Web crawler on python
On Mon, Oct 27, 2008 at 6:54 AM, sonich <[EMAIL PROTECTED]> wrote:
> I need simple web crawler,
> I found Ruya,
the resulting form
with the password
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris
Rebert
Sent: Thursday, October 16, 2008 10:15 AM
To: Support Desk
Cc: python-list@python.org
Subject: Re: account balance checker
You'd probably have to use some
Hello all,
I was wondering if it would be possible to make a script to grab my
balance account balance a few times a day without having to login every
time. I know I can use the urlib2 library, but not sure how to go about
filling in the forms and submitting them. BOA has a mobile site th
Oh in that case she can email me, I got lots of porn.
-Original Message-
From: Dotan Cohen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 08, 2008 3:15 PM
To: Support Desk
Cc: [EMAIL PROTECTED]; python-list@python.org
Subject: Re: Porn Addiction Solutions?
2008/10/8 Support Desk
I got a solution, cutt it off, and then Kill yourself.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 08, 2008 2:30 PM
To: python-list@python.org
Subject: Re: Porn Addiction Solutions?
On Oct 8, 3:07 pm, [EMAIL PROTECTED] wrote:
> Help, I'm
Kirk,
That's exactly what I needed. Thx!
-Original Message-
From: Kirk Strauser [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2008 11:42 AM
To: python-list@python.org
Subject: Re: More regex help
At 2008-09-24T16:25:02Z, "Support Desk" <[EMAIL PROTECTED
I am working on a python webcrawler, that will extract all links from an
html page, and add them to a queue, The problem I am having is building
absolute links from relative links, as there are so many different types of
relative links. If I just append the relative links to the current url, some
w
ssage <[EMAIL PROTECTED]>, Support
Desk wrote:
> Anybody know of a good regex to parse html links from html code? The one I
> am currently using seems to be cutting off the last letter of some links,
> and returning links like
>
> http://somesite.co
>
> or http://somesit
Anybody know of a good regex to parse html links from html code? The one I
am currently using seems to be cutting off the last letter of some links,
and returning links like
http://somesite.co
or http://somesite.ph
the code I am using is
regex = r''
page_text = urllib.urlopen('http://somesit
What about on a unix box?
Sincerely,
Michael H.
-Original Message-
From: Aaron "Castironpi" Brady [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2008 12:49 PM
To: python-list@python.org
Subject: Re: How do I add permanently to Pythons sys.path?
On Sep 16, 10:13 am, cnb <[EMAIL
Take a look at this:
http://www.velocityreviews.com/forums/t332696-setting-icon-using-py2exe.html
-Original Message-
From: Kevin McKinley [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 26, 2008 4:37 PM
To: python-list@python.org
Subject: Adding Icons to my Programs
I've been turn my s
Sincerely,
Michael H.
-Original Message-
From: Kevin McKinley [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 26, 2008 4:37 PM
To: python-list@python.org
Subject: Adding Icons to my Programs
I've been turn my script into executible programs with Py2exe. Is there a
way to change the
-Original Message-
From: Kevin McKinley [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 26, 2008 4:37 PM
To: python-list@python.org
Subject: Adding Icons to my Programs
I've been turn my script into executible programs with Py2exe. Is there a
way to change the icon for the main exe file
-Original Message-
From: tmallen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2008 12:26 PM
To: python-list@python.org
Subject: Hide raw_input text?
I'm working on a little FTP project to get comfortable with ftplib.
It's all terminal-based right now, and one issue I'm having is
-longer.html
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2008 3:09 AM
To: python-list@python.org
Subject: Re: internet searching program
On 8月12日, 下午1时44分, alex23 <[EMAIL PROTECTED]> wrote:
> On Aug 12, 12:03 am, "Support Desk"
What about pexpect?
http://www.noah.org/wiki/Pexpect
-Original Message-
From: Alan Franzoni [mailto:[EMAIL PROTECTED]
Sent: Monday, August 11, 2008 5:41 AM
To: python-list@python.org
Subject: Re: SSH utility
James Brady was kind enough to say:
> Hi all,
> I'm looking for a python lib
Google does'nt allow use of their API's anymore, I belive Yahoo has one or
you could do something like below.
searchstring = 'stuff here'
x = os.popen('lynx -dump http://www.google.com/search?q=%s' %
searchstring).readlines()
-Original Message-
From: Steven D'Aprano [mailto:[EMAIL PRO
U...yea
_
From: A. Joseph [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2008 1:44 PM
To: python-list@python.org
Subject: I need a Python mentor
How are you? You look good; I will like to meet you.
Visit my profile and drop some line for me.
Abah
Hello everybo
Hello all,
I am using os.popen to get a list returned of vpopmail users,
something like this
x = os.popen('/home/vpopmail/bin/vuserinfo -n -D mydomain.com).readlines()
x returns a list, of usernames, and I am trying to append the usernames with
the domain like so
for line i
I am trying to assign a variable using an if / else statement like so:
If condition1:
Variable = something
If condition2:
Variable = something else
Do stuff with variable.
But the variable assignment doesn't survive outside the if statement. Is
there any better w
Hello,
I am working on a web-app, that querys long distance numbers from a
database of call logs. I am trying to put together a regex that matches any
number that does not start with the following. Basically any number that
does'nt start with:
281
713
832
or
1281
1713
1832
Thats it exactly..thx
-Original Message-
From: Reedick, Andrew [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2008 9:26 AM
To: Support Desk
Subject: RE: regex help
The regex will now skip anything with an '@'in the filename on the
assumption it's already in the
I am trying to put together a regular expression that will rename users
address books on our server due to a recent change we made. Users with
address books user.abook need to be changed to [EMAIL PROTECTED] I'm
having trouble with the regex. Any help would be appreciated.
-Mike
--
http://mai
34 matches
Mail list logo