Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: trying to use/understand the "re"
Post: RE: trying to use/understand the "re"

(Mar-18-2019, 05:03 PM)snippsat Wrote: (Mar-18-2019, 03:18 PM)gentoobob Wrote: I want to only search for numbers only, not numbers with text. So "12" by itself, not "test12". Just the standalone n...
gentoobob General Coding Help 4 2,903 Mar-18-2019, 05:09 PM
    Thread: trying to use/understand the "re"
Post: RE: trying to use/understand the "re"

Awesome! Thank you! I did find the documentation but I was getting confused on some of it. And yesterday I was doing what you have but I was using other meta characters and getting myself confused ...
gentoobob General Coding Help 4 2,903 Mar-18-2019, 04:17 PM
    Thread: trying to use/understand the "re"
Post: trying to use/understand the "re"

I'm trying to match only numbers in a string that has text also and I can't for the life of me figure out how the "re" module works with regular expressions. Below is what I have so far. I've been pl...
gentoobob General Coding Help 4 2,903 Mar-18-2019, 03:18 PM
    Thread: ldap3 question, using a variable in search string
Post: (Resolved)RE: ldap3 question, using a variable in ...

I got it resolved guys. Thanks!
gentoobob General Coding Help 1 2,889 Apr-28-2018, 11:16 AM
    Thread: ldap3 question, using a variable in search string
Post: ldap3 question, using a variable in search string

I'm trying to figure out how to put in a variable in my search string for ldap3. I want to create a loop that goes through a list of usernames and does an Active Directory search thru each username. ...
gentoobob General Coding Help 1 2,889 Apr-26-2018, 05:06 PM
    Thread: working with lxml and requests
Post: RE: working with lxml and requests

ok...so far I have this (below). I need to take my soup parsing data (alias and dtmf) and put it into a file, a .CSV file with a date time stamp in the file name instead of printing it to the screen...
gentoobob Web Scraping & Web Development 23 11,708 Apr-19-2018, 06:54 PM
    Thread: working with lxml and requests
Post: RE: working with lxml and requests

Ok great! Thank you. Let me ask you, will I have to have a separate "soup" variable for each URL or can I cram all the pages into one variable? So when it visits each page, I want it to add on to ...
gentoobob Web Scraping & Web Development 23 11,708 Apr-19-2018, 05:43 PM
    Thread: working with lxml and requests
Post: RE: working with lxml and requests

Because the url at the end has a page number. I need a loop that starts at page one then goes to page two, three, etc until no more pages are left. There is 5000 users total but i can only see 2000 ...
gentoobob Web Scraping & Web Development 23 11,708 Apr-19-2018, 04:41 PM
    Thread: working with lxml and requests
Post: RE: working with lxml and requests

So this is what the XML looks like when it spits it out except its a a lot of users...5820 users on one page and I need to create a "while" loop that will go thru every page. The only two tags I nee...
gentoobob Web Scraping & Web Development 23 11,708 Apr-19-2018, 01:39 PM
    Thread: working with lxml and requests
Post: RE: working with lxml and requests

Thanks for the help but didn't work. It doesnt even output anything, it locks up my Python shell and I have to kill it. ok...so this works. It gives me a spit out of XML data. Now I need to get tha...
gentoobob Web Scraping & Web Development 23 11,708 Apr-19-2018, 01:08 PM
    Thread: working with lxml and requests
Post: RE: working with lxml and requests

I'm really confused now. I tried using the Perl URL and it just errors out. I think that URL layout in the perl is how the LWP::UserAgent handles the username and password authenication. Its format...
gentoobob Web Scraping & Web Development 23 11,708 Apr-18-2018, 08:21 PM
    Thread: working with lxml and requests
Post: RE: working with lxml and requests

Well that’s the perl version of what needs to be done. That’s just an example. I’m trying to do that in python.
gentoobob Web Scraping & Web Development 23 11,708 Apr-18-2018, 07:30 PM
    Thread: working with lxml and requests
Post: RE: working with lxml and requests

So after looking over your links here is what I have now... import requests from bs4 import BeautifulSoup response = requests.get('https://10.10.10.1/vmrest/users?rowsPerPage=2000\&pageNumber=1'...
gentoobob Web Scraping & Web Development 23 11,708 Apr-18-2018, 06:16 PM
    Thread: working with lxml and requests
Post: RE: working with lxml and requests

Ok. I will give it a try! Thanks you guys! Appreciate it!
gentoobob Web Scraping & Web Development 23 11,708 Apr-18-2018, 05:16 PM
    Thread: working with lxml and requests
Post: RE: working with lxml and requests

Thats the issue I'm also having. How can I get the XML code of the page I'm trying to access? I cant just use a web browser and go to that link I gave you. If I do, I get an error 405 (method not ...
gentoobob Web Scraping & Web Development 23 11,708 Apr-18-2018, 04:43 PM
    Thread: working with lxml and requests
Post: working with lxml and requests

Hello. I am trying to pull xml data from a webpage, grab only two XML tags or data pieces I need and then put them in an CSV file. The webpage is a Cisco Call Manager Unity Voicemail server. I want...
gentoobob Web Scraping & Web Development 23 11,708 Apr-18-2018, 02:47 PM
    Thread: Convert script from Perl to Python3
Post: RE: Convert script from Perl to Python3

Awesome! Thanks for the help. I will definitely give it a go. Appreciate it.
gentoobob Web Scraping & Web Development 2 9,150 Mar-29-2018, 11:31 PM
    Thread: Convert script from Perl to Python3
Post: Convert script from Perl to Python3

Hello! First off I'm not a strong Python developer. I'm a Network Engineer and I use Python to create automation scripts for accessing routers and switches. I've never tried to convert a script of a...
gentoobob Web Scraping & Web Development 2 9,150 Mar-29-2018, 06:13 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020