Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: What is the run time complexity of this code and please explain?
Post: What is the run time complexity of this code and p...
set1=set(input().split())#TAKING INPUT OF SETS
set2=set(input().split())
l=[]#CREATING EMPTY LIST FOR STORING THE COMMON DATA OF SETS
flag=0
#LOOP FOR CHECKING COMMON VALUE IN SETS
for i in set1:
... |
|
samlee916 |
General Coding Help |
2 |
2,332 |
Nov-05-2020, 07:44 PM |
|
|
Thread: Struggling To Understand These 2 Python Files
Post: Struggling To Understand These 2 Python Files
Please help me understand the code and its output
Find the missing element:
Given a sorted list or array, find a more efficient way to identify the element that is missing.
Below are code snippets fr... |
|
samlee916 |
Homework |
2 |
1,729 |
Sep-22-2020, 03:28 AM |
|
|
Thread: Python web crawler and input command not having the correct results see below for mor
Post: Python web crawler and input command not having th...
Web crawler crawls a website and exports the results into either a txt, son, XML, or csv file format of your choosing. I am getting an error when I run the python filename.py -t ALL https://www.youtub... |
|
samlee916 |
Web Scraping & Web Development |
0 |
1,533 |
Jul-25-2020, 08:24 PM |
|
|
Thread: Need help implmenting if/else or case statements for option to choose file format.
Post: Need help implmenting if/else or case statements f...
How can I implement an if/else or case statement for choosing a file format of my choice?
def main():
parser = argparse.ArgumentParser(description="Link Extractor Tool with Python")
parser.add_a... |
|
samlee916 |
General Coding Help |
1 |
2,045 |
Jul-22-2020, 01:50 AM |
|
|
Thread: Any ideas on making this python web crawler code more secure and optimal?
Post: Any ideas on making this python web crawler code m...
Code prints out internal and external links and stores it into four different file formats.
How to execute program: python filename url
import requests
import argparse
import time
import json
import r... |
|
samlee916 |
Code Review |
0 |
1,510 |
Jul-21-2020, 03:47 AM |
|
|
Thread: Need Help Getting Request Response From Main URL
Post: RE: Need Help Getting Request Response From Main U...
The code crawls a website and finds the internal and external link.
I would like help getting the request response from the main url.
For example, to run the script:
python <filename> <url>... |
|
samlee916 |
Web Scraping & Web Development |
3 |
1,992 |
Jul-17-2020, 08:22 PM |
|
|
Thread: Need Help Getting Request Response From Main URL
Post: Need Help Getting Request Response From Main URL
import requests
import argparse
import os
from urllib.request import urlparse, urljoin
from bs4 import BeautifulSoup
internal_links = set()
external_links = set()
urls = []
total_links_visited = 0
#... |
|
samlee916 |
Web Scraping & Web Development |
3 |
1,992 |
Jul-17-2020, 04:15 PM |
|
|
Thread: Any ideas on making this python web crawler code better, simpler, or optimal?
Post: Any ideas on making this python web crawler code b...
import requests
import argparse
from urllib.request import urlparse, urljoin
from bs4 import BeautifulSoup
#initialize the set of links
internal_links = set()
external_links = set()
total_links_visi... |
|
samlee916 |
Code Review |
0 |
1,656 |
Jul-15-2020, 01:30 PM |
|
|
Thread: Optimizing Or Better Python COde
Post: Optimizing Or Better Python COde
Any ideas/tips on how to better optimize this code or better and cleaner than it is?
import requests
import argparse
from urllib.request import urlparse, urljoin
from bs4 import BeautifulSoup
# initi... |
|
samlee916 |
Web Scraping & Web Development |
1 |
1,828 |
Jul-13-2020, 03:53 AM |
|
|
Thread: Web Crawler's Crawling Ability
Post: Web Crawler's Crawling Ability
How can I figure out how much a web crawler actually crawls on a website? |
|
samlee916 |
Web Scraping & Web Development |
3 |
2,794 |
Jul-12-2020, 02:43 AM |
|
|
Thread: Python Export Question Below
Post: Python Export Question Below
Any ideas on how to put the printed results in a CSV, JSON, or Excel format/file?
import requests
from parsel import Selector
#GET request from the website
response = requests.get('https://www.yout... |
|
samlee916 |
General Coding Help |
1 |
1,598 |
Jul-06-2020, 08:45 PM |
|
|
Thread: Log In Button Won't Click - Python Selenium Webdriver
Post: RE: Log In Button Won't Click - Python Selenium We...
|
samlee916 |
Web Scraping & Web Development |
2 |
3,896 |
Jun-07-2020, 04:42 PM |
|
|
Thread: Log In Button Won't Click - Python Selenium Webdriver
Post: RE: Log In Button Won't Click - Python Selenium We...
Updated Code Below.
The error message doesn't pop up.
#import what I need
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.support.wait i... |
|
samlee916 |
Web Scraping & Web Development |
2 |
3,896 |
May-31-2020, 07:23 PM |
|
|
Thread: Log In Button Won't Click - Python Selenium Webdriver
Post: Log In Button Won't Click - Python Selenium Webdri...
#import what I need
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
import time
#set my driver object
driver = webdriver.Chrome(ChromeDriverManager().install()... |
|
samlee916 |
Web Scraping & Web Development |
2 |
3,896 |
May-31-2020, 05:52 PM |
|
|
Thread: Need Help Understanding Python Code
Post: Need Help Understanding Python Code
I need help explaining this code that was given to me. I understand the simple ones like lines 1-4, and 9-10 and have a tough time understanding the rest of that portion of the code.
indexHTML = reque... |
|
samlee916 |
Web Scraping & Web Development |
1 |
2,176 |
Jan-03-2020, 03:02 PM |