-
Replied To a Post in How to print only the content of all <li> tags from a url page?
Thank you @snippsat. Your example was exactly what i was looking for. And thank you @Slavi for your answer and explanation. -
Replied To a Post in How to print only the content of all <li> tags from a url page?
I tried this for testing: >>> import urllib2 >>> import re >>> html = 'https://www.daniweb.com/software-development/python/threads/492669/how-to-print-only-the-content-of-all-tags-from-a-url-page' >>> re.findall(r'<p>(.+),/p>', html) But the output was: [] I tried other tags too but all … -
Created How to print only the content of all <li> tags from a url page?
Hi. How i can ask my crawler to print only the text of all <li></li> tags in a url page? I want to save the text of all <li></li> tags … -
Began Watching How to print only the content of all <li> tags from a url page?
Hi. How i can ask my crawler to print only the text of all <li></li> tags in a url page? I want to save the text of all <li></li> tags … -
Replied To a Post in looking for a good CMS tutorial
Thank you @DaniUserJS for introducing those websites. Of course i can't use pay sites because of payment systems problems, so i have to look for a free tutorial. I'm familiar … -
Created looking for a good CMS tutorial
Hello. I'm trying to create a simple CMS, and looking for a good tutorial, any idea?! -
Began Watching looking for a good CMS tutorial
Hello. I'm trying to create a simple CMS, and looking for a good tutorial, any idea?! -
Replied To a Post in need help for finding special NAMES in a url page (homework)
Well, ok i will try this way, but i think there should be an other more simple way that we have not find it yet. -
Replied To a Post in need help for finding special NAMES in a url page (homework)
Well, @David W, i can check every word in that page to see if the words startwords that starts with latter "A", are the names of singers or any other … -
Edited need help for finding special NAMES in a url page (homework)
Hello. I have a homework. I have asked to create a web crawler that be able to enter into a music website and then for the first step, collect the … -
Created need help for finding special NAMES in a url page (homework)
Hello. I have a homework. I have asked to create a web crawler that be able to enter into a music website and then for the first step, collect the … -
Began Watching need help for finding special NAMES in a url page (homework)
Hello. I have a homework. I have asked to create a web crawler that be able to enter into a music website and then for the first step, collect the … -
Replied To a Post in need help to understand a web crawler code
So why it works with `'http://www.python.org'` as the main url i give to programe, but when i tried it with another url, the result was what i posted in my … -
Created why the output doesn't contain all that URL links?
Hello my friends. Look at this please: >>> from bs4 import BeautifulSoup >>> import urllib2 >>> url = urllib2.urlopen('https://duckduckgo.com/?q=3D&t=canonical&ia=meanings') >>> soup = BeautifulSoup(url) >>> links = soup('a') >>> print links … -
Began Watching why the output doesn't contain all that URL links?
Hello my friends. Look at this please: >>> from bs4 import BeautifulSoup >>> import urllib2 >>> url = urllib2.urlopen('https://duckduckgo.com/?q=3D&t=canonical&ia=meanings') >>> soup = BeautifulSoup(url) >>> links = soup('a') >>> print links … -
Replied To a Post in What is the usage of urljoin?
Thank you @Anders 2. Thank you @Vegaseat. -
Replied To a Post in the duty of a web crawler
Was completely clear, Thank you @Slyte! -
Replied To a Post in the duty of a web crawler
Hello @Slyte, thank you for your explanation and your other ideas! Well, let me ask you some more question. And also ask you to make some parts more clear for … -
Replied To a Post in cant send this list from terminal to txt file/drop each index into new line
Thank you @Grebouillis. Thank you @snippsat. -
Created the duty of a web crawler
Hello. I'm trying to create a web crawler. I've read about web crawler's duty and about how it works and what he does. But just need more information. Could you … -
Began Watching the duty of a web crawler
Hello. I'm trying to create a web crawler. I've read about web crawler's duty and about how it works and what he does. But just need more information. Could you … -
Replied To a Post in how to update this countdown program and it's labels every second
@Slyte, what is that `dt` in line 10 for? -
Edited What is the usage of urljoin?
Hi everybody. What is the usage of `urljoin`? An example: >>> from urlparse import urljoin >>> url = urljoin('http://python.org/','about.html') >>> url 'http://python.org/about.html' I think the answer is that when we … -
Edited What is the usage of urljoin?
Hi everybody. What is the usage of `urljoin`? An example: >>> from urlparse import urljoin >>> url = urljoin('http://python.org/','about.html') >>> url 'http://python.org/about.html' I think the answer is that when we … -
Created What is the usage of urljoin?
Hi everybody. What is the usage of `urljoin`? An example: >>> from urlparse import urljoin >>> url = urljoin('http://python.org/','about.html') >>> url 'http://python.org/about.html' I think the answer is that when we … -
Began Watching What is the usage of urljoin?
Hi everybody. What is the usage of `urljoin`? An example: >>> from urlparse import urljoin >>> url = urljoin('http://python.org/','about.html') >>> url 'http://python.org/about.html' I think the answer is that when we … -
Created cant send this list from terminal to txt file/drop each index into new line
Hello, me again :) With this code: >>> from BeautifulSoup import BeautifulSoup >>> import urllib2 >>> url = urllib2.urlopen('http://www.python.org').read() >>> soup = BeautifulSoup(url) >>> links = soup('a') >>> print links … -
Began Watching cant send this list from terminal to txt file/drop each index into new line
Hello, me again :) With this code: >>> from BeautifulSoup import BeautifulSoup >>> import urllib2 >>> url = urllib2.urlopen('http://www.python.org').read() >>> soup = BeautifulSoup(url) >>> links = soup('a') >>> print links … -
Replied To a Post in need help to understand a web crawler code
I've test the code again. i gave it a url and then the output was: ********************************************************************** Scanning depth 1 web ********************************************************************** ********************************************************************** Scanning depth 2 web ********************************************************************** ********************************************************************** Scanning depth … -
Replied To a Post in need help to understand a web crawler code
oopss! Forgot to send the code! # -*- coding: utf-8 -*- from HTMLParser import HTMLParser from urllib2 import urlopen class Spider(HTMLParser): def __init__(self, starting_url, depth, max_span): HTMLParser.__init__(self) self.url = starting_url … -
Created need help to understand a web crawler code
Hello. I was looking for a tutorial or any example of creating web crawler that i found this code somewhere and copied and pasted to test it: First, it is … -
Began Watching need help to understand a web crawler code
Hello. I was looking for a tutorial or any example of creating web crawler that i found this code somewhere and copied and pasted to test it: First, it is … -
Replied To a Post in getting the current date
Thank you @Schol-R-LEA. -
Replied To a Post in any suggestion for tutorial to create web crawler with python urllib?
Thank you @Slyte, but unfortunatelly when i checked the link, i faced with **error 403** :( -
Replied To a Post in looking for a reference for python url lib tutorial?
Thank you @vegaseat, was helpful. -
Replied To a Post in send a printed text from terminal into a text file
Thank you @Andrae. Thank you @snippsat. -
Created how to update this countdown program and it's labels every second
Hi friends! I want to create a countdown program. Here is my code: from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.uix.label import Label import datetime class CountdownApp(App): def … -
Began Watching how to update this countdown program and it's labels every second
Hi friends! I want to create a countdown program. Here is my code: from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.uix.label import Label import datetime class CountdownApp(App): def … -
Replied To a Post in problem with kivy label
Yes it works, thank you @vegaseat. -
Created any suggestion for tutorial to create web crawler with python urllib?
Hi again. I want to create a robot or spider or crawler with python urllib. Still couldn't find any good tutorial. Any suggestion?! -
Began Watching any suggestion for tutorial to create web crawler with python urllib?
Hi again. I want to create a robot or spider or crawler with python urllib. Still couldn't find any good tutorial. Any suggestion?! -
Created send a printed text from terminal into a text file
Hi friends! import urllib url = 'http://www.python.org' text = urllib.urlopen(url).read() I have typed the code above on the terminal and in the next line with `print text` an html file … -
Began Watching send a printed text from terminal into a text file
Hi friends! import urllib url = 'http://www.python.org' text = urllib.urlopen(url).read() I have typed the code above on the terminal and in the next line with `print text` an html file … -
Replied To a Post in need help for database and PDO
@AleMonteiro, i didn't ask you google for me. I know how to install sqlite3 for php but the problem was thatwhen i want to connect it with PDO i still … -
Replied To a Post in looking for a reference for python url lib tutorial?
Well, i'm not sure if i installed it correctly or not. How can i install python urllib in my LInux Ubuntu? -
Created looking for a reference for python url lib tutorial?
Hello. I want to learn python urllib. I have installed it and now looking for a good tutorial, any suggestion? -
Began Watching looking for a reference for python url lib tutorial?
Hello. I want to learn python urllib. I have installed it and now looking for a good tutorial, any suggestion? -
Replied To a Post in problem with kivy label
Well, thank you @vegaseat, it works. But still don't know how to set my code wich has some different labels, here with your code i can print only one label … -
Replied To a Post in need help for database and PDO
@AleMonteiro, as we see in the Requirements part of that page you gaved the link, PDO Driver for SQLite 3.x is needed. Well, can you tell me how can i … -
Replied To a Post in problem with kivy label
I checked and it was int. I changed it into str and chenged afew parts and clear some extra part of code, it's more clear now: from kivy.app import App …
The End.