Python Forum
Need help creating a simple script
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help creating a simple script
#7
This is what i got:

Traceback (most recent call last):
File "C:\Users\SystemAdmin\Desktop\testpy.py", line 13, in <module>
sleep(30)
NameError: name 'sleep' is not defined


This is what i put down:import webbrowser


chrome_path = 'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s'

webbrowser.get(chrome_path).open('https://www.halowaypoint.com/en-us/news')


import time


sleep(30)

os.system("taskkill /im chrome.exe /f")

But then i want it to open again, after that time is up.

Im using way point for more of a message grabber. I actually plan on dedicating most of my time on learning all languages. I'm just starting, and this stuff fascinates me. Thanks for the help :D
Reply


Messages In This Thread
Need help creating a simple script - by Nonameface - Jul-13-2020, 04:22 AM
RE: Need help creating a simple script - by Nonameface - Jul-14-2020, 06:56 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Simple Python script, path not defined dubinaone 3 2,731 Nov-06-2021, 07:36 PM
Last Post: snippsat
  Help with Creating a Script for Automating Reports SunWers 1 1,952 Dec-29-2020, 10:21 PM
Last Post: jjc385
  Creating a simple rate limiter. DreamingInsanity 0 1,744 May-28-2020, 11:08 AM
Last Post: DreamingInsanity
  Creating an executable from a script wolf8963 6 5,837 May-11-2020, 05:23 PM
Last Post: wolf8963
  Need help creating complex loop around existing script CephloRhod 5 2,802 Apr-16-2020, 01:23 PM
Last Post: deanhystad
  Simple text to binary python script gmills13 2 2,841 Feb-04-2020, 08:44 PM
Last Post: snippsat
  Creating a List with many variables in a simple way donnertrud 1 2,060 Jan-11-2020, 03:00 PM
Last Post: Clunk_Head
  Made a simple script for android (really simple) but it is not running anddontyoucomebacknomore 2 2,394 Mar-06-2019, 12:19 AM
Last Post: anddontyoucomebacknomore
  Simple script that seems to misbehave? Nwb 1 2,367 Jun-10-2018, 05:30 AM
Last Post: Nwb
  First time with Python.. need help with simple script shakir_abdul_ahad 7 5,554 May-06-2018, 09:28 AM
Last Post: killerrex

Forum Jump:

User Panel Messages

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