我们有一个媒体管理程序, 使用 MySQL 表格存储信息。 当员工下载媒体( 视频文件、 图像、 音频文件) 并将其导入媒体经理时, 他们“ 表示 < / em > 还会复制媒体描述( 来源网站), 并将其添加到媒体经理的描述中 。 但是对于 < 坚固 > 千个 < / 坚固 > 文件, 还没有这样做 。
文件名( 例如, < enger > file123 strong>.mov) 是独一无二的, 可通过访问源网站的 URL 访问该文件的详细页面 :
网站:com/content/
file123
我们想要从该页面上提取的信息有一个元素识别码,该识别码始终是相同的。
在我的脑海里,这个过程将是: 强>
- Connect to database and Load table
- Filter:
"format"
is"Still Image (JPEG)"
- Filter:
"description"
is"NULL"
- Get first result
- Get
"FILENAME"
without extension)- Load the URL: website.com/content/
FILENAME
- Copy contents of the element
"description"
(on website)- Paste contents into the
"description"
(SQL entry)- Get 2nd result
- Rinse and repeat until last result is reached
我的问题是:"/强"
- Is there software that could perform such a task or is this something that would need to be scripted?
- If scripted, what would be the best type of script (eg could I achieve this using AppleScript or would it need to be made in java or php etc.)