Python Using Different Versions of Python - Compatibility/Dependencies?

  • Thread starter Thread starter WWGD
  • Start date Start date
  • Tags Tags
    Python
AI Thread Summary
The discussion centers on the compatibility and dependency issues between Python versions 2 and 3, particularly for tasks like web scraping. Users express that while they are learning both versions, they have encountered minimal issues using Python 2 examples in a Python 3 environment. The conversation highlights the importance of understanding the differences, such as the behavior of the divide operator and input functions, which can affect coding practices. Participants agree that unless legacy support is needed, focusing on Python 3 is advisable due to its ongoing support and improvements. Overall, the consensus is that while both versions can be used for similar tasks, Python 3 is the preferred choice for new projects.
  • #51
Perhaps it's worth asking what ML SFrame'esk lib is in python 3? Sometimes names change to protect the innocent. Other times newer options have sprung up. Data mining the web is a going concern. Seems odd no python 3 options are included.

P.S. are you using pip? Have you looked at virtual environments? Both are essential IMO for python development. (not that I've done much, but I know people who have)
 
Technology news on Phys.org
  • #53
Any suggestion on web scraping? I am kind of worried about associated legal issues. Should I stick to using APIs?
 
  • #54
I lied, I only watched 1/4 of the youtube video. I really have nothing to suggest.
 
  • #55
WWGD said:
Any suggestion on web scraping? I am kind of worried about associated legal issues.

If you're just scraping sites that are publicly visible anyway, I don't see why there would be any legal issues; everything on the page is there for the public to see. The site might throttle you if it detects that you're requesting too much data in too short a time, but that's a technical issue, not a legal issue; you just need to scrape at a slow enough rate, the same way the web crawlers for Google and other search engines do.
 

Similar threads

Replies
10
Views
3K
Replies
1
Views
7K
Replies
8
Views
2K
Replies
6
Views
2K
Replies
42
Views
5K
Replies
2
Views
2K
Back
Top