Posts by Rui Lima • 1,558 points
56 posts
-
3
votes2
answers1119
viewsA: Developing a Webcrawler in Python
There are several, in my personal experience: scrapy - for webscraping mechanize - for webcrawling sellenium webdriver - for browser automation (when mechanize is not able to handle the site, eg:…
-
1
votes1
answer569
viewsA: How to use a Cordova plugin?
This problem is common, I also came across it when I started using Cordova/ phonegap to make sure that the updates of the plugins installed take effect we should introduce: cordova platform remove…
-
0
votes1
answer65
viewsA: Set an analytic function in python
Is this what you’re looking for? http://www.scipy-lectures.org/advanced/sympy.html#matrices
-
2
votes4
answers3838
viewsA: What is the expression 'if __name__ == "__main__"' for?
In practical terms, all code written within that expression will only be executed if the library is used directly, for example if the file in question is executed in this way: python ficheiro.py The…
-
2
votes3
answers1472
viewsA: Problem using if Elif Else (Else error)
"Else" does not receive parameters, it is a condition applicable only when others fail, so: else media < 3.9: # Não tô entendendo este erro Should pass to: elif media < 3.9: # Não tô…
-
5
votes1
answer2420
viewsQ: Are there any random text generators that produce correct phrases?
Is there any program, preferably in python, capable of generating random text but syntactically correct? The language I’m looking for is English.