473,385 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How's python's web scraping capabilities (vs LWP) ...

Hello all,

I've been hacking away at perl for a few months now, mainly using the
LWP module, used for web scraping. Amoung its capabilities include
support for HTTPS and proxies, authentication, cookies (including the
ability to automatically import Internet Explorer cookies), etc.

It seems to me, however, that trying to write more sophisticated apps
using GUIs with perl is somewhat akin to pulling teeth, so I've been
looking at python, but was wondering if there was an LWP equivalent
for python?
Apr 8 '06 #1
3 2020
I don't know much about LWP.. but Beautiful Soup is grand!

http://www.crummy.com/software/BeautifulSoup/

Ryan McGuire

Apr 9 '06 #2
ArKane wrote:
Hello all,

I've been hacking away at perl for a few months now, mainly using the
LWP module, used for web scraping. Amoung its capabilities include
support for HTTPS and proxies, authentication, cookies (including the
ability to automatically import Internet Explorer cookies), etc.


urllib2 (in the standard library) will do most of this and gets you the
HTML from a site. To pull data out of the HTML try BeautifulSoup.

Kent
Apr 9 '06 #3
Check out twill <http://www.idyll.org/~t/www-tools/twill/>, which is
based on mechanize (<http://wwwsearch.sourceforge.net/>).

Grig

Apr 9 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Woogie | last post by:
When running the sample code below without a proxy the GET returns the expected data. When run with the $proxy uncommented the GET returns the content of the login page for the site being...
6
by: Richard Bell | last post by:
I'm returning to Perl and Linux after many years away and while I know/knew way back when about Perl and Unix I'm new to this world today. I'm considering using LWP as the heart of a Web...
0
by: mdh | last post by:
I have an application written for mod_perl and Apache that needs to be able to send some XML queries to a WebMethods server for access to corporate systems. I have been attempting to use LWP to...
0
by: Travis | last post by:
This is an example of LWP that I found on one of the perl docs pages. use LWP 5.64; this line is causing an external error. Does that mean I don't have LWP on my server or is something else...
3
by: Sanjay Arora | last post by:
We are looking to select the language & toolset more suitable for a project that requires getting data from several web-sites in real- time....html parsing/scraping. It would require full emulation...
4
by: kkamath | last post by:
Hi, I use LWP::UserAgent to automate windows login process. I set the credentials using $ua->credentials("host:port","realm","id","password"); but it fetches only the current page requested. It...
1
by: George Orwell | last post by:
Would I be missing much if I stopped trying to learn Perl well enough to use for spidering, screen scraping etc. and converted over to PHP ? I am looking to do all, or at least most of the hacks...
3
by: cketcham | last post by:
All, I have the following code: use 5.010; use LWP::UserAgent; use URI::URL; use LWP::Debug qw(+); my $browser = LWP::UserAgent->new();
1
by: jovalBag | last post by:
hi I'm trying to use the example here: http://search.cpan.org/~gaas/libwww-perl-5.836/lib/LWP.pm#An_Example here is the code: use LWP::UserAgent; use LWP::Debug qw(+);
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.