Scraping specific text from a webpage using xpath

I've searched and tried multiple ways to get this but I'm not sure why it won't find most of the information on the webpage. Page to scrape: https://m.safeguardproperties.com/ Info needed: Version number for PhotoDirect for Apple (currently 4.4.0) ...
more »

2017-10-04 23:10 (1) Answers

How to extract specific emails from a text file

New to python and stuck on this! I have a large text file of just emails from various domains. Say I want to pull out just gmail AND hotmail. I was able to with this but it comes out all mixed together. filename = input('Enter filename to open:...
more »

2017-09-07 04:09 (2) Answers

What's the name of the first argument of `[`?

letter[2] is equivalent to '['(letters,i=2) , second argument is i. What is the name of the first argument so the 2 following expressions would be equivalent ? lapply(1:3,function(x){letters[x]}) lapply(1:3,`[`,param1 = letters) # param1 to be repl...
more »

2017-09-06 10:09 (2) Answers

Get URL beginning with

I try to extract the first URL beginning with http://damonpyn.com. The format of the URL is http://damonpyn.com/yyyy-mm-ddfb (only yyyy-mm-dd changes with a date). Here is my example : var str = '...text before http://damonpyn.com/yyyy-mm-ddfb tex...
more »

2017-06-30 08:06 (2) Answers

echo all urls in a string by domain name? php

trying to extract all urls by domain names/ any url beginging in http://reports.example.com/report? https://reports.example.com/report? the string contains $string = "http://reports.example.com/report?id=randomtext afdf sadfsdf https://report...
more »

2017-06-25 01:06 (1) Answers

Extracting stream link from website

I need to extract the stream link from http://www.euronews.com/live I try'd it with: 'curl http://www.euronews.com/live' but the required m3u8 address is not contained in the result. I see the class is <div class="jw-media jw-reset"><v...
more »

2017-06-21 08:06 (0) Answers

E-Mailing with Scrapy Basics

I have the following code, and I need the exported items to be emailed to me so I can see the news. I am aware of Scrapy - 1.4 - Email Docs and I just can't seem to find enough examples to be able to do the same with my code. What's a good way to s...
more »

2017-06-20 18:06 (1) Answers

Problems when extract ZIP file in PHP

I'm trying to extract zip file to some folder in storage_path (I'm using laravel). But I don't know why they comes with .(dot)files when it extracted, also I want to extract them without creating another folder. Here's the code I'm using: lines insi...
more »

2017-05-12 22:05 (1) Answers

Python: save attachments from .msg files

So I have a folder with a ton of .msg files. I want to be able to save one of the attachments. My idea was automating clicking the files, then somehow extracting the file with a certain file name but I have yet to find any solutions to this. How do ...
more »

2017-05-04 17:05 (0) Answers

tinymce 4.x get selfrunning content

I would like to extract the HTML content created inside a tinyMCE editor to display it without any tinyMCE editor (displaying directly on a page). I'm aware of tinyMCE's getcontent() function. But is there another function/parameter/plugin that I ov...
more »

2017-05-02 17:05 (1) Answers

Python URL end string counter

I went back to one of my old projects in Python, but I seem to have forgotten how I managed to extract my data, if anyone can point me to the right direction and the documentations to implement this, it would be grateful. I implemented a web crawler...
more »

2017-03-03 05:03 (1) Answers

Oracle XML extract path

I have been trying to extract data from xml using oracle. This is my xml: <?xml version="1.0" encoding="UTF-8"?> <?xfa generator="XFA2_4" APIVersion="3.6.12227.0"?> <xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/"> <config xmlns...
more »

2017-02-17 11:02 (3) Answers

Extracting non-object values from ecocrop in R

I'm working on crop-climate modelling using Robert Hijmans' package 'dismo' and more specifically the function 'ecocrop'. Ecocrop calls a series of 'hidden' functions including, .doEcocrop (ecocrop and .doEcocrop pasted below), which calculate the fi...
more »

2017-02-14 08:02 (0) Answers

How to retrieve email address from text

I am trying to retrieve a email address from a chunk of text and split it into two columns, name (column B) and email (column C) using Excel VBA. Next, I would like to match the list of emails in column C to a separate list of names by comparing it...
more »

2017-02-12 05:02 (2) Answers

regex c# extracting url from <a> tag

I am trying to extract URL from an tag, however, instead of getting https://website.com/-id1, I am getting tag link text. Here is my code: string text="<a style=\"font - weight: bold; \" href=\"https://website.com/-id1\">MyLink</a>"; ...
more »

2017-02-08 17:02 (2) Answers

Extracting URLs from a PDF using Python PyPDF2

In a related question Extracting links to pages in another PDF from PDF using Python or other method a python script for this task was posted. The script was for the old pyPdf library. I updated three lines of the script to try to make it work with P...
more »

2017-02-05 17:02 (1) Answers

Extracting a value from an ets:lookup() - Erlang

I have a ets table formatted as below ets:new(players, [set,named_table]) The data that is put into the table is a players name and their age. It is in the format of [{Name,Age}] I made a function to try get a players age and age only. getPlaye...
more »

2017-01-13 23:01 (1) Answers