Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: open("python.pdf","wb") - why "wb" instead of "a"?
Post: open("python.pdf","wb") - why "wb" instead of "a"?

I came across the following code in a website. import requests file_url = "http://codex.cs.yale.edu/avi/db-book/db4/slide-dir/ch1-2.pdf" r = requests.get(file_url, stream = True) with op...
Man_from_India General Coding Help 1 1,752 Aug-21-2020, 10:32 AM
    Thread: Segmented video not playing
Post: RE: Segmented video not playing

(Aug-20-2020, 12:39 PM)DeaD_EyE Wrote: You need an account to use Hotstar and to download the video content, you need your session-id and/or cookie. It's possible to re-use a cookie from your browse...
Man_from_India Networking 3 2,979 Aug-21-2020, 04:02 AM
    Thread: M4S file extensin in Streaming video. How to download and use in Python
Post: M4S file extensin in Streaming video. How to downl...

I was watching a movie on hotstar and decided to download that movie. I will use Python to do that. But for that I need the video URL. I inspected the page and came to know that it has segmented strea...
Man_from_India Networking 0 2,853 Aug-20-2020, 07:48 AM
    Thread: Segmented video not playing
Post: Segmented video not playing

I know this is not the right way to approach the problem I am going to solve. I am watching a movie from Hotstar and now I want to download the movie to my desktop. O inspected the page and came to kn...
Man_from_India Networking 3 2,979 Aug-20-2020, 07:44 AM
    Thread: Build unofficial API from an website
Post: Build unofficial API from an website

There is a pizza ordering API available, and we can use it using pip. But as far as I know that API is not an official API. How that API was built? Can you help me or guide me through similar API bu...
Man_from_India Web Scraping & Web Development 0 1,304 Feb-25-2020, 01:21 AM
    Thread: Blob object
Post: RE: Blob object

(Feb-11-2020, 11:14 AM)Larz60+ Wrote: the only thing I can advise would be to download the source of pytube and examine how they wrote the package. That will help you formulate your own package. Git...
Man_from_India Web Scraping & Web Development 8 5,041 Feb-11-2020, 03:00 PM
    Thread: Blob object
Post: RE: Blob object

(Feb-11-2020, 05:35 AM)Larz60+ Wrote: Downloading from YouTube is a snap with pytube: https://pypi.org/project/pytube/Thank you. But I don't want to use any package. I want to learn the coding and h...
Man_from_India Web Scraping & Web Development 8 5,041 Feb-11-2020, 05:46 AM
    Thread: Blob object
Post: RE: Blob object

(Feb-11-2020, 02:56 AM)Larz60+ Wrote: I was asking for the URL of the webpage you are scraping.Well let me explain what I was doing. I was making a YouTube downloader. So I picked up any random page...
Man_from_India Web Scraping & Web Development 8 5,041 Feb-11-2020, 03:30 AM
    Thread: Blob object
Post: RE: Blob object

(Feb-10-2020, 05:38 PM)Larz60+ Wrote: The URL would be most helpful. Also tag and parentsQuote:<video tabindex="-1" class="video-stream html5-main-video" controlslist="nodownload" style="width: 6...
Man_from_India Web Scraping & Web Development 8 5,041 Feb-11-2020, 02:17 AM
    Thread: Blob object
Post: Blob object

While scraping an webpage I found that the src of a video link is supplied as a blob object. Like this: src = blob:"www.xyz...." Now how to deal with blob object in python?
Man_from_India Web Scraping & Web Development 8 5,041 Feb-10-2020, 05:11 PM
    Thread: add() takes 2 positional arguments but 3 were given
Post: RE: add() takes 2 positional arguments but 3 were ...

(Feb-08-2020, 08:42 AM)ndc85430 Wrote: Why do you need the class at all? I was getting an error while creating an unofficial API. In order to analyse the error I made this test case. Thank you btw.
Man_from_India General Coding Help 3 5,771 Feb-10-2020, 05:08 PM
    Thread: add() takes 2 positional arguments but 3 were given
Post: add() takes 2 positional arguments but 3 were give...

I have two python files - Addition.py and test,py Addition.py class Addition: num1 = 0 num2 = 0 def add(n1, n2): num1 = n1 num2 = n2 return num1 + num2test,py i...
Man_from_India General Coding Help 3 5,771 Feb-08-2020, 08:12 AM
    Thread: Error in continue statement
Post: Error in continue statement

for i in range(len(openings)): # Extraction job description opening = openings[i].find_all("p") # To check if final result is announced for this job if '(Final Result ...
Man_from_India General Coding Help 1 1,550 Feb-02-2020, 12:54 PM
    Thread: Contact form button click action
Post: Contact form button click action

I created a contact me HTML page and there I created a Contract form and there is a submit button. I want to click on that button and check if all the text boxes that the form consists of is filled wi...
Man_from_India Web Scraping & Web Development 1 2,791 Feb-01-2020, 04:00 PM
    Thread: Send email to gmail after user fill up contact form and getting django database updat
Post: Send email to gmail after user fill up contact for...

I created a django app where inside an HTML file I created a contact form. And when any user fill up the form and press submit button, django database is updated. Now my problem is I want to create a...
Man_from_India Web Scraping & Web Development 0 2,107 Jan-22-2020, 03:59 PM
    Thread: Object exchange from django app to client app and vide versa
Post: Object exchange from django app to client app and ...

How can I send an object to the django app from client app? And how to capture the object in django app and send back processed object to the client app? And then how to capture the received object fr...
Man_from_India General Coding Help 1 1,963 Aug-15-2019, 04:08 AM
    Thread: Integrating shango app with desktop GUI app
Post: Integrating shango app with desktop GUI app

I created a desktop GUI for pere to peer socket connection. I will use this GUI for text msg exchange. So I will implement this using python socket programming importing 'socket' module. In addition t...
Man_from_India General Coding Help 0 1,949 Aug-09-2019, 01:49 AM
    Thread: Need to generate random numbers
Post: RE: Need to generate random numbers

Please try this code. This will generate random number and put them in a list but each items in the list is unique. import random list = [] # An empty list i = int(input("Enter the number: ")) # p...
Man_from_India General Coding Help 8 3,932 Jul-19-2019, 03:37 PM
    Thread: Size Policy, Laout and Official Documentation
Post: RE: Size Policy, Laout and Official Documentation

Another example is this: from PyQt5 import QtWidgets app = QtWidgets.QApplication([]) window = QtWidgets.QWidget() window.setGeometry(50, 50, 500, 300) menu_bar = QtWidgets.QMenuBar(window) menu_bar...
Man_from_India GUI 4 8,596 Jul-13-2019, 11:47 AM
    Thread: Size Policy, Laout and Official Documentation
Post: RE: Size Policy, Laout and Official Documentation

(Jul-12-2019, 09:04 PM)Denni Wrote: Okay first I am not quite sure what you were asking about but it is always good to start from a good base and your program is lacking that base so in an effort to...
Man_from_India GUI 4 8,596 Jul-13-2019, 03:15 AM

User Panel Messages

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