display all logos on a page or map - list

I'm trying to find a way to display a list of 500+ logos from 500+ url's.
I want to make a global map of all companies with their respective logos that's i have coming from a url http://www.xxxxxx/wp-content/uploads/QOPIUS.png
The results could be like this
Image example from medium
I've tried some BI tools like Tableau or MS Report but none of them is doing the job to make a map and manually this weird.
If any ideas from there, you are welcome.
Thx.

There are several ways to do this. Simple solution:
If you have your URL paths in a file, just read the file line by line and download all logos. I am using bash for my example:
while read line; do curl -O $line; done < urls.txt
Once you have all your logos use imageMagick to concatenate your logos into one big jpg/png/other_file_format:
montage -mode concatenate -tile 4x *.jpg map.jpg
For more information see imageMagick documentation:
http://www.imagemagick.org/Usage/montage/

Related

Read-in df from csv before launching main app | Dash

I am trying to get my first dashboard with python dash running.
The whole thing is very similar to this https://github.com/dkrizman/dash-manufacture-spc-dashboard.
At the beginning a Dataframe is read in from a csv. My problem seems to be quite easy to solve but somehow I am not succeeding:
I want to create a initial window that allows the user to select (from e.g. dropdown) the csv file (or accordingly the path) that is read in. All the .csv files look the same but just have different values.
When using the modal components I get problems with the install of bootstrap and I thought there must be an easier way?
Thanks for your help!
Best,
Nik

RegEX to search links in a text file?

Im trying to clean a database that contains a lot of links that doesnt work
The problem is that there are a lot of links for picture and every picture has a different name of course.
Is it possible to select the entire link That contains "http://example.com/img/bloguploads/" with a regEX ?
Can find all hyperlinks with:
http[s]?://.[a-zA-Z0-9\.\/\-]+
And all example.com links with:
http://example\.com/img/bloguploads/\S+

Is it possible to make a youtube list out of a text file?

So, I have a text in the form
artist01 - piece01
artist02 - piece02
...
Can I make a youtube list out of that, or at least get a text file like
youtube-url1
youtube-url2
...
Given that each search will return more than one results, I could just take the first result of each one and get the respective video URL.
I'm using Linux (Debian if that matters) and was wondering whether youtube-dl have this function. Or must I use the Youtube API?
Also, could that list with the URLs be made as a youtube list too?
Given a file searches, you can run
youtube-dl --get-id --default-search ytsearch --batch-file searches > song-ids
song-ids will contain the YouTube video IDs. You can feed them into youtube-dl at a later stage. If you want full URLs, prefix them with https://youtu.be/.

Extract three text items from multiple posts on an HTML page into csv or similar?

I have a few html pages, each with a number of posts that follow a given pattern and that contain a lot of different information, among others a well-identified url and an associated name and date. I would like to produce a table containing date + name + url in separate columns and ignore the rest of the text in the document (both data and html formatting).
I was thinking of using OpenOffice and its regex functions to do so but I don’t see how I would do the actual extraction from html to a table (I am familiar with search and replace but am not sure there is a way to do extraction; Jan Dvorak’s third comments to the question on How to extract file name from random image <img> tags in Open Office speaks against it).
Is there a good way to do this text extraction, in OpenOffice or with any other tool?
Is there a good way to do this text extraction, in OpenOffice or with
any other tool?
Since you're parsing HTML, it would be easier to use an HTML parsing engine. For example in PHP you could pull all the links or all the images from a page with a few simple lines.
// Create DOM from URL or file
$html = file_get_html('path and file name');
// Find all images
foreach($html->find('img') as $element)
echo $element->src . '<br>';
// Find all links
foreach($html->find('a') as $element)
echo $element->href . '<br>';
This could be further refined if you had some additional information about the values being pulled and how they are stored in the file.

read file from url path and display in chart format

i working on one project. i want to read file which path from url,this file containing xml data i have to show this data in chart format.
Basically, your steps may be these:
Validate the URL data (StructKeyExists + FileExists + isFile).
Read and parse XML file, you can do this with XmlParse.
Convert XML object into the query (see query functions).
Render the data using great charting tags.
If you want more detailed help -- please expand your question, to make it more specific.