Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: new to python, need some help
Post: RE: new to python, need some help

(Jan-04-2021, 11:17 PM)DarkDriver Wrote: so far, i love it. I actually haven't programmed since 2001. I made some poor choices when I was a young man and I've spent most of my life in prison paying ...
Aspire2Inspire General Coding Help 2 1,893 Jan-21-2021, 12:58 PM
    Thread: decoding backslash sequenses
Post: RE: decoding backslash sequenses

(Jan-21-2021, 10:12 AM)snippsat Wrote: It depend on the source encoding,if it's utf-8 it should be strait forward. >>> s = b'hello \xf0\x9f\xa4\xa8' >>> s.decode() # Same as s.dec...
Aspire2Inspire News and Discussions 4 3,894 Jan-21-2021, 12:49 PM
    Thread: How to make a bot in pycharm for youtube for automatically adding python comments
Post: RE: How to make a bot in pycharm for youtube for a...

What sort of level of experience are you currently at with Python? I would use selenium, automate the browser to add comments.. Which i can help you with, if you level with me on your Python experien...
Aspire2Inspire General Coding Help 1 2,073 Jan-21-2021, 12:47 PM
    Thread: question about bot for mmo game
Post: RE: question about bot for mmo game

(Jan-17-2021, 09:43 AM)rachidel07 Wrote: hello everybody, i have no idea on programing so istarted learning PYthon . i watch begginer courses and videos. i learn python in order to be able making bo...
Aspire2Inspire General Coding Help 1 2,049 Jan-21-2021, 12:45 PM
    Thread: Need help with code
Post: RE: Need help with code

Is the below what you are after? Run the script and let me know! This isn't hard stuff really, you should try and learn it because it's really useful, they wouldn't set you stuff like this if it was...
Aspire2Inspire Homework 3 1,863 Jan-21-2021, 12:43 PM
    Thread: How to open a new tab without focusing on it.
Post: RE: How to open a new tab without focusing on it.

Hey. Isn't there an option webbrowser.opentab(url) that will open it without focusing? Have you read the webbrowser documentation it has a lot of info
Aspire2Inspire General Coding Help 1 2,064 Dec-21-2020, 12:05 PM
    Thread: urllib.request
Post: RE: urllib.request

I'm guessing there is Javascript on the page that YouTube loads and you wont see on requests. That being said, try using some headers so that YouTube doesn't redirect your connection or block your req...
Aspire2Inspire General Coding Help 2 2,449 Dec-21-2020, 12:00 PM
    Thread: Web scraping cookie in URL blocks selenium
Post: RE: Web scraping cookie in URL blocks selenium

Don't use find_by_class use the find_by_xpath or find_by_selector options. You can also clear cookies or use selenium in "incognito" mode Difficult to give good advice without an example code though
Aspire2Inspire Web Scraping & Web Development 2 2,453 Dec-21-2020, 11:57 AM
    Thread: Would you prefer two 'if' statements or an 'if' and an 'else' statement?
Post: RE: Would you prefer two 'if' statements or an 'if...

Hey! I would prefer and if statement and an elif statement. With so few options it's not such a big deal though
Aspire2Inspire General Coding Help 6 2,538 Dec-09-2020, 11:14 PM
    Thread: Writing unit test results into a text file
Post: RE: Writing unit test results into a text file

Maybe look at subprocess and some of the methods there, i know you can bring information into your code that way? Sorry i cant help any more
Aspire2Inspire General Coding Help 3 4,759 Nov-15-2020, 05:19 PM
    Thread: Infinite loop problem
Post: RE: Infinite loop problem

Why don't you just catch all exceptions? If its a ReadError then it will just continue to loop?
Aspire2Inspire General Coding Help 5 2,994 Nov-15-2020, 05:16 PM
    Thread: Noob scraping with lxml check stock
Post: RE: Noob scraping with lxml check stock

Its not essential to use Selenium, you could also use something called splash. But for a beginner, i would suggest using a library called requests_HTML. It loads JS on a webpage and is easy to use! ...
Aspire2Inspire Web Scraping & Web Development 1 1,773 Nov-15-2020, 05:15 PM
    Thread: I created a Web scraping Udemy bot
Post: RE: I created a Web scraping Udemy bot

Nice, i made something similar to this! Now i just use requests to send me a list daily of any in IT and Science, and check to see if they are still available. So i can pick and choose which i want ...
Aspire2Inspire Code sharing 1 3,010 Nov-15-2020, 05:12 PM
    Thread: Block comment in Intellij
Post: RE: Block comment in Intellij

Hello there! Try CTRL + /
Aspire2Inspire General Coding Help 2 2,302 Nov-15-2020, 05:05 PM
    Thread: Basic PDF Scraping Tool
Post: RE: Basic PDF Scraping Tool

Also, PDFPlumber and Py2PDF are two common and decent library's! Goodluck
Aspire2Inspire Web Scraping & Web Development 3 2,222 Nov-04-2020, 10:54 PM
    Thread: Download a link that re-directs to a login page
Post: RE: Download a link that re-directs to a login pag...

Did you know you could use cookies with requests when sending headers in the request instance, this is what i do when i'm dealing with mass scraping with sites that require captcha to users that aren'...
Aspire2Inspire Web Scraping & Web Development 1 2,712 Oct-23-2020, 03:27 PM
    Thread: pycharm
Post: RE: pycharm

CTRL + SHIFT + F10, RUN toolbar at the top, Right click on the code and hit 'RUN' If that doesn't work,seems like installation issue?
Aspire2Inspire General Coding Help 1 1,408 Oct-21-2020, 09:15 AM
    Thread: Can't open Amazon page
Post: RE: Can't open Amazon page

You can also send cookies with requests. That being said, Selenium may well be the best option. If you haven't used html_requests, i would recommend looking at that for anything javascript related. I...
Aspire2Inspire Web Scraping & Web Development 3 3,222 Oct-21-2020, 09:13 AM
    Thread: Installing Help
Post: RE: Installing Help

Is Python in your PATH?
Aspire2Inspire General Coding Help 2 1,552 Sep-24-2020, 07:57 AM
    Thread: Python Gonna Be King...
Post: RE: Python Gonna Be King...

This doesn't surprise me Python has become so useful and its such a good entry level language too! Thanks for sharing
Aspire2Inspire Bar 2 1,743 Sep-21-2020, 09:30 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020