循环内的Applescript循环(重复)

时间:2018-05-08 13:08:36

标签: curl web-scraping applescript

我做错了以下的AppleScript没有:

  1. 从.txt文件加载搜索关键字

  2. 从构建的网址获取链接:将网址设置为“https://teespring.com/search?q=”& “来自”.txt文件

  3. 的一个关键字
  4. 从这些构建的网址返回所有链接。

  5. P.S。仅在纯卷曲中是否可以获取URL和href过滤?

    -

    Attendance::whereMonth('created_at', date('m'))
                ->whereYear('created_at', date('Y'))->get();
    

    enter image description here

    谢谢大家

    丹尼尔

1 个答案:

答案 0 :(得分:0)

找到了解决方案:

tell application "Finder"
    set myPath to container of (path to me) as text
    set theKeywords to read file (myPath & "KEYWORDS.txt") as «class utf8» using delimiter linefeed
end tell

set keyword_urls to "https://teespring.com/search?q="


set listCount to count of theKeywords
set site_url to {}
repeat with i from 1 to listCount
    set end of site_url to keyword_urls & item i of theKeywords
end repeat