Re: [Tutor] Python C extension - which method?

2018-05-05 Thread Stefan Behnel
Hi, Brad M schrieb am 04.05.2018 um 11:30: > I want to create a C-based memory scanner for Python, and so far this is > how I do it: > > Python: > > from ctypes import cdll > mydll = cdll.LoadLibrary('hello.dll') > print(mydll.say_something()) > > and hello.dll: > > #include > __declspec(dlle

Re: [Tutor] Extract main text from HTML document

2018-05-05 Thread boB Stepp
On Sat, May 5, 2018 at 12:59 PM, Simon Connah wrote: > I was wondering if there was a way in which I could download a web > page and then just extract the main body of text without all of the > HTML. I do not have any experience with this, but I like to collect books. One of them [1] says on pag

Re: [Tutor] Extract main text from HTML document

2018-05-05 Thread Mats Wichmann
On 05/05/2018 11:59 AM, Simon Connah wrote: > Hi, > > I'm writing a very simple web scraper. It'll download a page from a > website and then store the result in a database of some sort. The > problem is that this will obviously include a whole heap of HTML, > JavaScript and maybe even some CSS. No

[Tutor] Extract main text from HTML document

2018-05-05 Thread Simon Connah
Hi, I'm writing a very simple web scraper. It'll download a page from a website and then store the result in a database of some sort. The problem is that this will obviously include a whole heap of HTML, JavaScript and maybe even some CSS. None of which is useful to me. I was wondering if there w

[Tutor] Figuring out selective actions in Python

2018-05-05 Thread Daniel Bosah
Hello, I'm trying to figure out how to do blank in blank things. For example, if I want to delete 5 MB ( or anything ) for every 20 MB, how would the could look like? I'm essentially trying to do an action in one order of the sequence out of an entire sequence. Thank you for your help __

[Tutor] Python C extension - which method?

2018-05-05 Thread Brad M
Hi all: I want to create a C-based memory scanner for Python, and so far this is how I do it: Python: from ctypes import cdll mydll = cdll.LoadLibrary('hello.dll') print(mydll.say_something()) and hello.dll: #include __declspec(dllexport) int say_something() { return 1980; } so the pr