Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Dilemma over Learning PowerShell or Python
Post: RE: Dilemma over Learning PowerShell or Python
(Jul-03-2019, 07:19 PM)snippsat Wrote: Use cmder the you get a shell that work equal good as any shell on Linux/Mac.
cmd/PowerShell **sick** do i not need to touch voluntary.
Other stuff that run ... |
|
Takeshio |
News and Discussions |
3 |
2,194 |
Jul-04-2019, 08:05 AM |
|
|
Thread: Dilemma over Learning PowerShell or Python
Post: Dilemma over Learning PowerShell or Python
Hi Guys,
I have learned the basics of Python 3 on my Mac and Linux machines and the projects I created were pretty handy.
I learning Machine Learning (ML) with Python on TensorFlow and Sci-Kit, but ... |
|
Takeshio |
News and Discussions |
3 |
2,194 |
Jul-03-2019, 05:17 PM |
|
|
Thread: Generate unique random numbers from different lists
Post: RE: Generate unique random numbers from different ...
(May-24-2019, 05:58 PM)ichabod801 Wrote: Some tips on your code: since everything in whole_list is an int, you don't need to convert them to an in on line 16. Also, you are not really using status. ... |
|
Takeshio |
General Coding Help |
5 |
3,699 |
May-24-2019, 06:49 PM |
|
|
Thread: Generate unique random numbers from different lists
Post: RE: Generate unique random numbers from different ...
(May-24-2019, 05:24 PM)ichabod801 Wrote: You are getting a list out of random.sample, not an integer. Therefore it's not in the list of integers you are checking against, and you get a list of lists... |
|
Takeshio |
General Coding Help |
5 |
3,699 |
May-24-2019, 05:41 PM |
|
|
Thread: Generate unique random numbers from different lists
Post: Generate unique random numbers from different list...
Hi Guys,
My objective is to select 5 unique random numbers from a range of numbers inside a list, prior to storing them inside a final list. These 5 random numbers shall not be numbers from another ... |
|
Takeshio |
General Coding Help |
5 |
3,699 |
May-24-2019, 04:32 PM |
|
|
Thread: Generate a list of numbers within a list of arbitrary numbers
Post: RE: Generate a list of numbers within a list of ar...
(Nov-07-2018, 02:36 PM)buran Wrote: I think you were just confused by the example with range.
Note that if you have repeated numbers in the original list it's also possible to have repeating element... |
|
Takeshio |
General Coding Help |
4 |
3,437 |
Nov-08-2018, 12:29 AM |
|
|
Thread: Generate a list of numbers within a list of arbitrary numbers
Post: RE: Generate a list of numbers within a list of ar...
(Nov-07-2018, 12:30 PM)buran Wrote: I don't understand what the problem with using random.sample() is
from random import sample
population = (23, 2, 49, 100, 101)
my_sample = sample(population, 3)
... |
|
Takeshio |
General Coding Help |
4 |
3,437 |
Nov-07-2018, 02:00 PM |
|
|
Thread: Generate a list of numbers within a list of arbitrary numbers
Post: Generate a list of numbers within a list of arbitr...
Hi Guys,
Suppose I have a list of arbitrary numbers (23, 2, 49, 100, 101) and from this list, I want to randomly pick 3 unique numbers and store them inside a new list. I can’t use random.sample() f... |
|
Takeshio |
General Coding Help |
4 |
3,437 |
Nov-07-2018, 12:23 PM |
|
|
Thread: Error with using pyinstaller to convert python script in Mac OS
Post: RE: Error with using pyinstaller to convert python...
(Oct-19-2018, 02:11 PM)snippsat Wrote: Look at this fix.
Thank you for your reply.
I tried that method from that article before but it didn’t work out for me. |
|
Takeshio |
General Coding Help |
2 |
5,321 |
Oct-19-2018, 02:42 PM |
|
|
Thread: Error with using pyinstaller to convert python script in Mac OS
Post: Error with using pyinstaller to convert python scr...
Hi guys,
I'm a newbie with python and I have hit the following pyinstaller module (version 3.4) error, when I attempted to convert my python 3.7 script into a single executable file. The OS that I'm... |
|
Takeshio |
General Coding Help |
2 |
5,321 |
Oct-19-2018, 01:33 PM |
|
|
Thread: [Python 3] - Extract specific data from a web page using lxml module
Post: RE: [Python 3] - Extract specific data from a web ...
(Aug-23-2018, 11:56 PM)snippsat Wrote: (Aug-23-2018, 11:47 PM)Takeshio Wrote: I’m a little confuse here and can I use lxml module to parse HTML data and extract the specific data within the HTML t... |
|
Takeshio |
Web Scraping & Web Development |
9 |
7,027 |
Aug-24-2018, 07:19 AM |
|
|
Thread: [Python 3] - Extract specific data from a web page using lxml module
Post: RE: [Python 3] - Extract specific data from a web ...
(Aug-23-2018, 07:01 PM)snippsat Wrote: Remove text() from Xpath,can use .text from lxml.
Now can also take out .attrib from CSS class.
from lxml import etree
# Simulate a web page
html = '''\
<h... |
|
Takeshio |
Web Scraping & Web Development |
9 |
7,027 |
Aug-24-2018, 02:13 AM |
|
|
Thread: [Python 3] - Extract specific data from a web page using lxml module
Post: RE: [Python 3] - Extract specific data from a web ...
(Aug-23-2018, 08:01 PM)snippsat Wrote: That link you posted @nilmao is for not using regex with XML/HTML.
lxml is an XML and HTML parser.
lxml Wrote:lxml is the most feature-rich and easy-to-use li... |
|
Takeshio |
Web Scraping & Web Development |
9 |
7,027 |
Aug-23-2018, 11:47 PM |
|
|
Thread: [Python 3] - Extract specific data from a web page using lxml module
Post: RE: [Python 3] - Extract specific data from a web ...
Sorry mate. I didn’t notice that python code tags feature as I was using an iPhone to post this question (so the screen is quite small).
I will take note of your advice but right now, can anyone ple... |
|
Takeshio |
Web Scraping & Web Development |
9 |
7,027 |
Aug-23-2018, 06:41 PM |
|
|
Thread: [Python 3] - Extract specific data from a web page using lxml module
Post: [Python 3] - Extract specific data from a web page...
Hi guys,
I am trying to write a Python 3 code (using lxml module) to extract some specific data from a webpage.
A sample of the HTML data presented in the webpage is as below.
______________________... |
|
Takeshio |
Web Scraping & Web Development |
9 |
7,027 |
Aug-23-2018, 05:20 PM |
|
|
Thread: Why isn’t there any good hacking books written in Python 3
Post: RE: Why isn’t there any good hacking books written...
Thanks for the prompt replies, guys. This was actually my first post in this forum and I didn’t expect the forum to be so active.
I guess I will just continue to learn the basics of python 3 with th... |
|
Takeshio |
News and Discussions |
8 |
11,108 |
Aug-14-2018, 05:43 AM |
|
|
Thread: Why isn’t there any good hacking books written in Python 3
Post: Why isn’t there any good hacking books written in ...
Hi Guys,
I am currently learning Python 3 recently using the Crash Course for Beginners Book and so far so good. My intention of learning Python is to understand more on security exploits and tools ... |
|
Takeshio |
News and Discussions |
8 |
11,108 |
Aug-13-2018, 04:48 PM |