Re: Python Scripts to logon to websites



> but googling for "basic authentication" and
> maybe "realm" and/or "host" will find you other sites with less
> technically detailed material.

This looks promising, but it'll take me a week to understand it :)

http://www.voidspace.org.uk/python/articles/authentication.shtm

Thanks for your help with the search terms.

rpd
l
Peter Hansen wrote:
> BartlebyScrivener wrote:
> > New to Python and Programming. Trying to make scripts that will open
> > sites and automatically log me on.
> >
> > The following example is from the urllib2 module.
> >
> > What are "realm" and "host" in this example.
>
> http://www.ietf.org/rfc/rfc2617.txt probably provides more background
> than you want on that topic, but googling for "basic authentication" and
> maybe "realm" and/or "host" will find you other sites with less
> technically detailed material. The first hit has a little summary
> amidst some Apache-specific detail.
>
> > Does anyone have a simple example of a script that opens, say, gmail or
> > some other commonly accessed site that requires a username and password
> > so that I can see how one is made?
>
> "realm" and "host" are associated with "basic authentication" and not
> all sites use that. If the browser pops up a little dialog box of its
> own (i.e not some Javascript-triggered thing) and you have to enter your
> username and password there, that's probably a "basic auth" (or "digest
> auth") site. If you fill that info into a form (as on gmail.com) you
> don't want any of that "realm/host" stuff.
>
> I'll leave it to others more expert in this to provide a more directly
> useful answer.
>
> -Peter

.



Relevant Pages

  • Re: opening a file
    ... Many of these scripts are on-the-fly scripts. ... Every rule has exceptions. ... for not checking whether or not a file opens in my own scripts, ... Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers ...
    (comp.lang.perl.misc)
  • Re: word opens without opening the document, like /n
    ... shortcut, ... I first noticed this behavior after running automation scripts. ... opens Word, opens a document, changes it, then closes Word. ... Do registry setting over ride command line switches? ...
    (microsoft.public.word.docmanagement)
  • Re: Opening multiple files at once, interface and flicker issues
    ... The first is to have opening scripts which should be triggered if the user navigates to them using the Window>> Show Window menu option. ... The second is to use FileMaker Advanced to actually remove the Window menu option thus preventing the user from opening those files. ... opens another file, the password is "inherited" and the second file's ...
    (comp.databases.filemaker)
  • Re: opening a file
    ... Many of these scripts are on-the-fly scripts. ... Every rule has exceptions. ... for not checking whether or not a file opens in my own scripts, ... deliberate choice on my part, and I have never sought to impose that ...
    (comp.lang.perl.misc)
  • Re: Email From DAP
    ... the SendObject command in VB. ... I thought I'd turned Google upside down looking for these scripts - what ... search terms did you use?? ...
    (microsoft.public.access.dataaccess.pages)