Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #111999

Re: Python text file fetch specific part of line

From cs@zip.com.au
Newsgroups comp.lang.python
Subject Re: Python text file fetch specific part of line
Date 2016-07-29 08:17 +1000
Message-ID <mailman.13.1469745427.6033.python-list@python.org> (permalink)
References <lujjpbtlmi0vr7irk8qiaiut90sdgriq2q@4ax.com> <20160728221725.GA26530@cskk.homeip.net>

Show all headers | View raw


On 28Jul2016 19:28, Gordon Levi <gordon@address.invalid> wrote:
>Arshpreet Singh <arsh840@gmail.com> wrote:
>>I am writing Imdb scrapper, and getting available list of titles from IMDB 
>>website which provide txt file in very raw format, Here is the one part of 
>>file(http://pastebin.com/fpMgBAjc) as the file provides tags like 
>>Distribution  Votes,Rank,Title I want to parse title names, I tried with 
>>readlines() method but it returns only list which is quite heterogeneous, is 
>>it possible that I can parse each value comes under title section?
>
>Beautiful Soup will make your task much easier
><https://www.crummy.com/software/BeautifulSoup/>.

Did you look at his sample data? Plain text, not HTML or XML. Beautiful Soup is 
not what he needs here.

Cheers,
Cameron Simpson <cs@zip.com.au>

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Python text file fetch specific part of line Arshpreet Singh <arsh840@gmail.com> - 2016-07-27 22:12 -0700
  Re: Python text file fetch specific part of line cs@zip.com.au - 2016-07-28 17:04 +1000
    Re: Python text file fetch specific part of line honeygne@gmail.com - 2016-08-01 23:55 -0700
  Re: Python text file fetch specific part of line Gordon Levi <gordon@address.invalid> - 2016-07-28 19:28 +1000
    Re: Python text file fetch specific part of line cs@zip.com.au - 2016-07-29 08:17 +1000
      Re: Python text file fetch specific part of line Gordon Levi <gordon@address.invalid> - 2016-07-29 18:42 +1000
        Re: Python text file fetch specific part of line cs@zip.com.au - 2016-07-30 12:46 +1000

csiph-web