Python Client for an HTML Server



I want to create a python client, that will receive and post messages to an HTML Webserver. I have found several articles on how to read html data, which i have been able to do. but i cant find any resources on how to trigger events for html, like pushing buttons.
Can anyone help me out
,
Posted On: Friday 28th of December 2012 05:26:05 AM Total Views:  201
View Complete with Replies

RELATED TOPICS OF Python Programming PROGRAMMING LANGUAGE




Re: Modul (%) in python not like in C?

"Dotan Cohen" wrote in message news:880dece00709091201n449d4c2k31998a5d426de17d@mail.gmail.com... | FIrst of all, how is the % symbol (as in 70%6=4) called in English | | Second, in Turbo C -111%10=-1 however in python -111%10=9. Is one or | the other in error Is this a known gotcha I tried to google the | subject however one cannot google the symbol %.
VIEWS ON THIS POST

76

Posted on:

Monday 5th November 2012
View Replies!

How do I call anonymous classes from imported modules?

I am importing 3rd party modules via a plugin script. I wish to iterate thru the modules and call a common method like .do_foobar() or something with all the imports. But I can't figure out how to do something like below without knowing the class name before hand. Is there a builtin that helps call classes anonymously (Calling example.do_foobar() works because I manually enter the classes' name) >>> a=MyApp() >>> sensorsList = [] >>> for snames in a.pluginsDict["sensorsplugins"]: sensorsList.append(__import__(snames)) >>> sensorsList[0].example.do_foobar() but I need something like >>> sensorsList[0][0].do_foobar() because I will not know the plugin class names. -- Later, Joe
VIEWS ON THIS POST

114

Posted on:

Monday 5th November 2012
View Replies!

Re: avoid script running twice

On 18/06/07, Evan Klitzke wrote: > On 6/18/07, Robin Becker wrote: > > I wish to prevent a python script from running twice; it's an hourly job, but > > can take too long. > > > > My simplistic script looks like > > > > > > ....... > > def main(): > > fn = 'MARKER' > > if os.path.isfile(fn): > > log('%s: hourly job running already' % formatTime()) > > else: > > f = open(fn,'w') > > f.write(str(os.getpid())) > > f.close() > > try: > > work() > > finally: > > os.remove(fn) > > > > if __name__=='__main__': > > main() > > > > but it occurs to me that I might be killed with prejudice during the long > > running work(). Is there a smart way to avoid running simultaneously. > > Another method that you can use is to open up a socket on some > predetermined port (presumably above 1024), and then have your program > try to connect to that port and "talk" to the other program to > determine whether or not to run (or whether to do some of the > remaining work, etc.). You don't need to talk to the socket, a second script trying to create a second socket on the same number will throw an exception and you can exit the script cleanly without running a second copy. You can also do this by holding a file open in write mode until the script has finished. try: open('lock.txt','w') my_script() except: #print script is already running If the file is already open the script won't run, if the script finshes/crashes or the machine reboots the open file will close. In both cases if the script finishes normally or crashes, or the machine is restarted. The lock (ie socket or open file) is released. HTH -- Tim Williams
VIEWS ON THIS POST

80

Posted on:

Monday 5th November 2012
View Replies!

ANN: eric4 4.0.0 release

I am proud to announce the availability of the first official release of eric4. eric4 is the successor of the well known eric3 Python development environment. What is eric4 -------------- eric4 is an Integrated Development Environment for the Python (and Ruby) language. It comes with all batteries included. It has too many features to list here. For details please visit http://www.die-offenbachs.de/eric/index.html
VIEWS ON THIS POST

95

Posted on:

Monday 5th November 2012
View Replies!

First Texas Unconference

I'm pleased to announce we in Houston have started planning the 1st Annual Texas Unconference for Python users. This is a FREE weekend event scheduled for Sept. 15-16, 2007. We've arranged use of the Texas Learning & Computing Center on the campus of the University of Houston. Python users in the region are invited to attend and make this first event memorable! Visit our Wiki site and help shape the event over the next five months. http://pycamp.python.org/Texas/HomePage
VIEWS ON THIS POST

65

Posted on:

Monday 5th November 2012
View Replies!

installing matplotlib with cygwiin

Hi!! I need to run matplotlib for one project with pylab and scipy module, i'm using cygwin so as to link system call operation with few GUI support, but am unable to install numpy and scipy without these matplotlib is also not installed Please help me for proper installation of these module in cygwin for python, i followed scipy.org installation guidelines but having done so, am not able to proper installation. regard's anish
VIEWS ON THIS POST

143

Posted on:

Wednesday 7th November 2012
View Replies!

Parse each line by character location

: I hope this is the right place to ask, but I am trying to come up with a way to parse each line of a file. Unfortunately, the file is neither comma, nor tab, nor space delimited. Rather, the character locations imply what field it is. For example: The first ten characters would be the record number, the next character is the client type, the next ten characters are a volume, and the next three are order type, and the last character would be an optional type depending on the order type. The lines are somewhat more complicated, but they work like that, and not all have to be populated, in that they may contain spaces. For example, the order number may be 2345, and it is space padded at the beginning of the line, and other might be zero padded in the front. Imagine I have a line: ______2345H0000300000_NC_ where the underscores indicate a space. I then want to map this to: 2345,H,0000300000,NC, In other words, I want to preserve ALL of the fields, but map to something that awk could easily cut up afterwords, or open in a CSV editor. I am unsure how to place the commas based on character location. Any ideas
VIEWS ON THIS POST

46

Posted on:

Wednesday 7th November 2012
View Replies!

Re: Exact match with regular expression

On Sun, 26 Oct 2008 17:51:29 +0100, Mr.SpOOn wrote: > > I'd like to use regular expressions to parse a string and accept only > valid strings. What I mean is the possibility to check if the whole > string matches the regex. > > So if I have: > >>>> p = re.compile('a*b*') > > I can match this: 'aaaaaabbb' > >>>> m = p.match('aaaaaabbb') >>>> m.group() > 'aaaaaabbb' > > But I'd like to get None with this: 'aabDDDDb' Instead it matches the > first part: > >>>> m = p.match('aabDDDDb') >>>> m.group() > 'aab' > > I know this is the expected behaviour, but I'm sure it should be > possible doing what I said. > Are there other methods I don't know about in the re module > >
VIEWS ON THIS POST

114

Posted on:

Wednesday 7th November 2012
View Replies!

Re: RELEASED Python 2.6 final

Also, the docs currently seem broken. Example: http://docs.python.org/library/weakr...module-weakref , which is linked to from the new module index page, gives a 404 error. Cheers, Chris Rebert On Wed, Oct 1, 2008 at 8:46 PM, Barry Warsaw wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On behalf of the Python development team and the Python community, I am > happy to announce the release of Python 2.6 final. This is the > production-ready version of the latest in the Python 2 series. > > There are many new features and modules, improvements, bug fixes, and other > changes in Python 2.6. Please see the "What's new" page for details > > http://docs.python.org/dev/whatsnew/2.6.html > > as well as PEP 361 > > http://www.python.org/dev/peps/pep-0361/ > > While Python 2.6 is backward compatible with earlier versions of Python, 2.6 > has many tools and features that will help you migrate to Python 3. > Wherever possible, Python 3.0 features have been added without affecting > existing code. In other cases, the new features can be enabled through the > use of __future__ imports and command line switches. > > Python 3.0 is currently in release candidate and will be available later > this year. Both Python 2 and Python 3 will be supported for the foreseeable > future. > > Source tarballs, Windows installers, and Mac disk images can be downloaded > from the Python 2.6 page: > > http://www.python.org/download/releases/2.6/ > > (Please note that due to quirks in the earth's time zones, the Windows > installers will be available shortly.) > > Bugs can be reported in the Python bug tracker: > > http://bugs.python.org > > Enjoy, > - -Barry > > Barry Warsaw > barry@python.org > Python 2.6/3.0 Release Manager > (on behalf of the entire python-dev team) > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (Darwin) > > iQCVAwUBSOREJ3EjvBPtnXfVAQLAigP/aEnrdvAqk7wbNQLFbmBonIr2YQbd1vEu > TyTr5imYXFWGNfv1/JMeMBjMfwpHi1bgPEDTLEZdhDRNj/G1h4NqqnpfJS0lfIaU > 4JBKwnsO80se/RGyupcs5f09UdKxOljhbFKEw46CHDkd9lE+cqy2yhetEwyx3c3+ > AVC11sjcO54= > =Oxo3 > -----END PGP SIGNATURE----- > -- > http://mail.python.org/mailman/listinfo/python-list > -- Follow the path of the Iguana... http://rebertia.com
VIEWS ON THIS POST

42

Posted on:

Wednesday 7th November 2012
View Replies!

VIFF 0.7

-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkjWMrAACgkQ6nfwy35F3TjIegCeOyLHCkTRmt5eMTRjxkgJQNQn NEQAnRq27GY7KC7iW5IOP1Fbj2LYYxMr =kJVN -----END PGP SIGNATURE-----
VIEWS ON THIS POST

31

Posted on:

Wednesday 7th November 2012
View Replies!

Distribute ctypes based modules

how do you distribute ctypes based modules on a linux machine What does your setup.py look like I have to copy my shared library to /usr/lib or another common place, but I would prefer .../site-packages/... In the latter case I have to modify LD_LIBRARY_PATH oder some ld.so.conf configuration file. So, what is the prefered method for this task Greetings, Uwe
VIEWS ON THIS POST

61

Posted on:

Wednesday 7th November 2012
View Replies!

PyGtk Windows all in one installer

I realized a PyGtk all in one installer for Windows. You can download it from here: http://www.bonifazi.eu/appunti/pygtk..._installer.exe It is simply an assembling of all the different installers I previously downloaded (which are executed step by step), and you can choose. I realized this installer using EclipseNSIS and compiling the script generated by NSIS. Then, the script I created and that you can compile and modify using NSIS is the following: http://www.bonifazi.eu/appunti/pygtk..._installer.nsi I give also the link of the webpages where I got the different installers: http://www.bonifazi.eu/appunti/2008/...installer.html I'll try to keep update this installer. I hope it could be useful to someone. Bye. Marco Bonifazi
VIEWS ON THIS POST

61

Posted on:

Wednesday 7th November 2012
View Replies!

POpen - Wait For Process To Complete

Rob. Did you ever figure this out. It's driving me crazy too. ________________________________________________ Mark McGirr Land Information Specialist Regional Client Services Division Integrated Land Management Bureau Ministry of Agriculture and Lands 201 - 172 North Second Avenue Williams Lake, BC V2G 1T4 phone 250-398-4719 fax 250-398-4836 mark.mcgirr@gov.bc.ca
VIEWS ON THIS POST

24

Posted on:

Wednesday 7th November 2012
View Replies!

Re: Subclassing int

G wrote: > > > I am trying to subclass int to allow a constructor to accept None. I > am trying the following > > class INT(int): > def __init__(self, x): > if x is None: > return None > else: > int.__init__(x) > > b = INT(x=None) > > When i run the previous code i get the following error: > b = INT(x=None) > TypeError: int() argument must be a string or a number, not 'NoneType'. > > Do you know why the if statement is not evaluated > >
VIEWS ON THIS POST

27

Posted on:

Wednesday 7th November 2012
View Replies!

[ANN] Release 0.52 of Task Coach

Hi all, I'm pleased to announce release 0.52 of Task Coach. New in this release: Bugs fixed: * For completed tasks, the number of days left for a task is now the number of days between the completion date and the due date. This prevents that the number of days left of completed tasks keeps decreasing, i.e. becoming more negative. For uncompleted tasks, the number of days left is still the number of days between today and the due date, of course. Patch provided by Maciej Malycha. * Put taskocachlib package first on the Python search path to prevent name conflict with the config module on Gentoo Linux. * Mention blue icon in the help on task colors. * Don't allow empty categories. Features added: * Tasks can be dragged and dropped. * Tasks can have an hourly fee and/or a fixed fee. Revenue is calculated based on effort spent. * First tiny steps towards a user manual, see 'Help' -> 'Help contents'. * Whether the main window hides itself when iconized is now adjustable behavior. See 'Edit' -> 'Preferences'. Feature changed: * Backups are created just before saving, instead of when loading a .tsk file. Patch provided by Maciej Malycha. Feature removed: * Files in the old comma-separated format can no longer be read by Task Coach. What is Task Coach Task Coach is a simple task manager that allows for hierarchical tasks, i.e. tasks in tasks. Task Coach is open source (GPL) and is developed using Python and wxPython. You can download Task Coach from: http://taskcoach.niessink.com https://sourceforge.net/projects/taskcoach/ A binary installer is available for Windows XP, in addition to the source distribution. Note that Task Coach is alpha software, meaning that it is wise to back up your task file regularly, and especially when upgrading to a new release. Cheers, Frank
VIEWS ON THIS POST

31

Posted on:

Wednesday 7th November 2012
View Replies!

PPY 0.0.5 -- create Python callables in PPC assembly

More-or-less for my own amusement, I've written a small Python package that allows one to write Python callables in PowerPC assembly: http://starship.python.net/crew/mwh/hacks/PPY.html This is clearly an insane thing to want to do, but take a look if it sounds intriguing. Currently only supports Mac OS X but I imagine a port to linux/ppc would be fairly straightforward. Cheers, mwh
VIEWS ON THIS POST

86

Posted on:

Wednesday 7th November 2012
View Replies!

Re: What is the preferred doc extraction tool?

On 7/9/07, Emin.shopper Martinian.shopper wrote: > Dear Experts, > > What is the preferred doc extraction tool for python It seems that there > are many very nice options (e.g., pydoc, epydoc, HappyDoc, and lots of > others), but what is the "standard" tool or at least what is the tool used > to generate the documentation for the python standard library The tool is Latex plus a lot of utilities that help make the HTML output good looking. It doesn't even extract documentation from the source. The best tool is definitely epydoc. It produces very good looking javadoc-like html output by default, no annoying css setup needed. You can also produce pdfs with it which is very nice. -- mvh Bjrn
VIEWS ON THIS POST

76

Posted on:

Saturday 10th November 2012
View Replies!

Making HEAD/PUT/DELETE requests with urllib2?

In my attempt to learn python in a weekend, I've fallen foul at line 10 of my second scripting attempt. Basically I'm writing a simple spider, but currently I'm unable to find any documentation on making HEAD requests using the urllib2 library to test whether a file exists on a remote webserver. I've checked the docs on urllib2 from docs.python.org, and unless I'm missing something there doesn't seem to be a way to do *any* request other than a GET and POST. Surely this can't be correct If so, we're all going to have a hell of a time creating RESTful web apps.
VIEWS ON THIS POST

90

Posted on:

Saturday 10th November 2012
View Replies!

mapping subintervals

hi, I have the following problem which is turning out to be non-trivial. I realize that this is not exactly a python problem but more of an algorithm problem -- but I post it here because I want to implement ...
VIEWS ON THIS POST

59

Posted on:

Saturday 10th November 2012
View Replies!

Python Help!!!

I'm trying to make a program that reads Fasta file and print it out. I used the SeqIO module and the results is: 'ATGGTCAT....SingleAlphabet()' For this purpose, should I use SeqIO or Fasta for example: from Bio import SeqIO or ...
VIEWS ON THIS POST

31

Posted on:

Saturday 10th November 2012
View Replies!

Global Python Sprint Weekends: May 10th-11th and June 21st-22nd.

Following on from the success of previous sprint/bugfix weekends and sprinting efforts at PyCon 2008, I'd like to propose the next two Global Python Sprint Weekends take place on the following dates: * May 10th-11th (four days after 2.6a3 and ...
VIEWS ON THIS POST

41

Posted on:

Saturday 10th November 2012
View Replies!

'normal' shell with curses

I'm trying to print out text in color. As far as I know, curses is the only way to do that (or not). So, what I ultimately want is a curses terminal that behaves as closely as possible as ...
VIEWS ON THIS POST

41

Posted on:

Saturday 10th November 2012
View Replies!

(Windows) "Dropping" stuff onto a Python script

people, I'd like to have the functionality known from "real" executables that if I drag-drop a file icon on top of the app, the app starts and has the file's path as command-line argument. However, this doesn't seem to ...
VIEWS ON THIS POST

27

Posted on:

Saturday 10th November 2012
View Replies!

project in python

I want to do a project in python. It should be something based on socket programming, HTML/XML parsing, etc please suggest me \t\t...
VIEWS ON THIS POST

210

Posted on:

Saturday 10th November 2012
View Replies!

Execution speed question

I am performing simulations on networks (graphs). I have a question on speed of execution (assuming very ample memory for now). I simplify the details of my simulation below, as the question I ask applies more generally than my specific ...
VIEWS ON THIS POST

61

Posted on:

Sunday 11th November 2012
View Replies!

Hello,who can help me!

I have implemented a C++ COM,which contains two interface in one coclass. when i use this COM in python: dll=win32com.client.Dispatch("XXXXX") then i can only call default interface's method,but can't call non default interface's method. who can tell me how to ...
VIEWS ON THIS POST

103

Posted on:

Sunday 11th November 2012
View Replies!

How to process a very large (4Gb) tarfile from python?

I am trying to do something with a very large tarfile from within Python, and am running into memory constraints. The tarfile in question is a 4-gigabyte datafile from freedb.org, http://ftp.freedb.org/pub/freedb/ , and has about 2.5 million members in it. ...
VIEWS ON THIS POST

98

Posted on:

Sunday 11th November 2012
View Replies!

Playing stereo wav files in Python

- all, I am trying to play stereo wavefiles in python with no success. I can play mono wavefiles, using either pygames mixer library, python's winsound library or wxPython's wx.Sound library, but i cannot get stereo wavefiles to play in ...
VIEWS ON THIS POST

146

Posted on:

Sunday 11th November 2012
View Replies!

grin 1.1

grin is a new grep-like tool for recursively searching through text files, primarily source code. Download: http://pypi.python.org/pypi/grin Wiki: https://svn.enthought.com/enthought/wiki/Grin SVN: https://svn.enthought.com/svn/sandbox/grin/trunk Basically, it does exactly what I want grep to do 99% of the time with the least amount of ...
VIEWS ON THIS POST

94

Posted on:

Sunday 11th November 2012
View Replies!

Re: Python "is" behavior

On Fri, 20 Jun 2008 09:31:57 -0700 (PDT), michalis.avraam@gmail.com wrote: >I am not certain why this is the case, but... > >>>> a = 256 >>>> b = 256 >>>> a is b >True > >>>> a = 257 >>>> ...
VIEWS ON THIS POST

62

Posted on:

Sunday 11th November 2012
View Replies!

Decimals in python

. New to using Python. Python automatically round off watver i calculate using the floor function. How wud i make the exact value appear Tried out fabs() in the math library but still confused. Cud some1 elaborate on it....
VIEWS ON THIS POST

83

Posted on:

Sunday 11th November 2012
View Replies!

learning with python question (HtTLaPP)

all, I've been trying to teach myself python from "How to Think Like a Python Programmer" and have been trying to write a script that checks 'words.txt' for parameters (letters) given. The problem that is the i can only ...
VIEWS ON THIS POST

77

Posted on:

Sunday 11th November 2012
View Replies!

Oilfield Applications: WITS AND WITSML

, If anyone has any interest in developing a bit of code for generating WITS and WITSML in python, then drop me a line. I've started a project on google apps, "PyWITS", and I plan to support both WITS and ...
VIEWS ON THIS POST

63

Posted on:

Sunday 11th November 2012
View Replies!

Publicizing PyCon kit available

A "Publicizing PyCon" kit has been posted at the PyCon website. PyCon has always relied on the community to get the word out. This year, we've put together a "Publicizing PyCon" page under the "Helping Out" section of the PyCon ...
VIEWS ON THIS POST

24

Posted on:

Sunday 11th November 2012
View Replies!

looking for ocbc example

I am sure this is what I want: http://www.python.org/topics/database/docs.html "The documentation for the PythonWin ODBC module." but it is 404. google isn't being nice. Anyone know where I can find some simple examples I have used odbc in other environments, ...
VIEWS ON THIS POST

161

Posted on:

Monday 12th November 2012
View Replies!

import antigravity

Guess what made xkcd today: http://xkcd.com/353/...
VIEWS ON THIS POST

43

Posted on:

Monday 19th November 2012
View Replies!

The Importance of Terminology's Quality

I'd like to introduce a blog post by Stephen Wolfram, on the design process of Mathematica. In particular, he touches on the importance of naming of functions. \t Ten Thousand Hours of Design Reviews (2008 Jan 10) by Stephen Wolfram ...
VIEWS ON THIS POST

21

Posted on:

Sunday 25th November 2012
View Replies!

ANN: papyros 0.2

I am pleased to announce papyros-0.2, the second alpha release of papyros: http://code.google.com/p/papyros/ . Compared to the initial release 14 months ago, only the basic goal has remained the same; both the API and the internals have been thoroughly revamped. ...
VIEWS ON THIS POST

58

Posted on:

Sunday 25th November 2012
View Replies!

Re: logging into a website using python

leo davis wrote: > I''m trying achieve the following by running python programs > > -login to a website > -automate filling up web forms http://twill.idyll.org/ ...
VIEWS ON THIS POST

109

Posted on:

Sunday 25th November 2012
View Replies!

simplest c python api callback example

The following is a simple complete example using the c python api to generate callbacks from c to python. But when I run the c code I get a segfault in PyInt_FromLong () (see below). Most of this example code ...
VIEWS ON THIS POST

73

Posted on:

Sunday 25th November 2012
View Replies!

Re: How is GUI programming in Python?

On Wed, Apr 9, 2008 at 8:54 PM, Chris Stewart wrote: > I've always had an interest in Python and would like to dabble in it > further. I've worked on a few very small command line programs but ...
VIEWS ON THIS POST

50

Posted on:

Sunday 25th November 2012
View Replies!

ANN: pry unit testing framework

We are happy to announce the first release of Pry, a unit testing framework. Features ======== * Built-in coverage ****ysis, profiling, and quick-and-dirty benchmarking * Assertion-based tests - no ugly failUnless*, failIf*, etc. methods * Tree-based test structure for better ...
VIEWS ON THIS POST

33

Posted on:

Sunday 25th November 2012
View Replies!

[ANN] Release 0.69.2 of Task Coach

I'm happy to announce release 0.69.2 of Task Coach. This is primarily a bug fix release. Bugs fixed: * Tasks created via the context menu of the category view now automatically belong to the selected category. * Update task ...
VIEWS ON THIS POST

41

Posted on:

Sunday 25th November 2012
View Replies!

Dispatch("Excel.Application") failed

Maybe it 's quite simple, but I can't fix it. Do I make some mistakes in my env setting My excel version is 2003. any suggestion
VIEWS ON THIS POST

43

Posted on:

Sunday 25th November 2012
View Replies!

Great Python books for the beginner

I'm a freshman in college and I'm going to be taking an intro to programming course next semester which mainly uses Python, so I thought it might be a good time to pick up Python beyond the scope of ...
VIEWS ON THIS POST

77

Posted on:

Sunday 25th November 2012
View Replies!

PIL question

, Would anyone know how to generate thumbnails with rounded corners using PIL I'm also considering imagemagick if PIL turns out not to be appropriate for the task. Thank you so much, Alex...
VIEWS ON THIS POST

38

Posted on:

Monday 26th November 2012
View Replies!

Default location of python on OS X

I've installed the latest 2.5 python today from python.org, and I think it ended up in "/Applications/MacPython 2.5". I also have a "/Applications/MacPython 2.4" and a "/Applications/ MacPython-2.4". Can I delete these, or did one of them come with Leopard ...
VIEWS ON THIS POST

94

Posted on:

Monday 26th November 2012
View Replies!

Re: Trouble getting loop to break

At 03:53 AM 11/20/2007, Fredrik Johansson wrote: >On Nov 20, 2007 8:41 AM, Dick Moores wrote: > > I'm writing a demo of the infinite series > > > > x**0/0! + x**1/1! + x**2/2! + x**3/3! + ... ...
VIEWS ON THIS POST

39

Posted on:

Monday 26th November 2012
View Replies!

Function won't exit on return!

(Toggle Plain Text) # def find_items(url): # try: # url = urllib.urlopen(url).read() # except: # return None # while True: # web_page = 'some url' # fs_item = url.find(r'some text') # fs_item += 9 # fe_item= url.find(r'"',fs_item) # item.append(web_page[:]+url[fs_item:fe_item]) # ps_s = url.find(r'"some text">Next') # if ps_s is -1: no_next = 1 # else: no_next = 0 # if not no_next: # ps_s-=25 # ps_e = url.find(r'"',ps_s) # next_page = '' # next_page= next_page + web_page[:] + url[ps_s:ps_e] # for items in range(1,25): # ss_item = url.find(r'some text',fe_item) # if ss_item is -1: break # ss_value = ss_item # char_to_kill = url[ss_item-1:ss_item] # if url[ss_item-1:ss_item] is char_to_kill: ss_item = url.find(r'some text'ss_value+9) # if ss_item is -1: # if no_next is 1: # return item #
VIEWS ON THIS POST

49

Posted on:

Wednesday 28th November 2012
View Replies!

I'm a new to Python

, nice forums you have here. Anyway I've started to learn python, today infact, as I've heard its a good language to learn, I have some experience in BASIC and a little in C from using Linux. I was wondering if there was a function in Python that did the same as mid$() in BASIC, I've searched for tutorials on string manipulation etc, but could not find anything on this function.
VIEWS ON THIS POST

266

Posted on:

Friday 28th December 2012
View Replies!