Skip to content

Commit

Permalink
clean-up packages
Browse files Browse the repository at this point in the history
  • Loading branch information
jetkai committed Feb 17, 2023
1 parent 6bec218 commit 32619ac
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import mu.KotlinLogging
import scraper.net.CoroutinesHttpClient
import scraper.plugin.Plugin
import scraper.plugin.PluginFactory
import scraper.plugin.hook.ProxyData
import scraper.plugin.hook.ProxyWebsite
import scraper.util.NetworkUtils
import scraper.util.data.ProxyData
import java.net.http.HttpResponse
import java.time.LocalDateTime
import java.time.format.DateTimeFormatter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import mu.KotlinLogging
import scraper.net.CoroutinesHttpClient
import scraper.plugin.Plugin
import scraper.plugin.PluginFactory
import scraper.plugin.hook.ProxyData
import scraper.plugin.hook.ProxyWebsite
import scraper.util.data.ProxyData
import java.net.http.HttpResponse

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/plugin/httpclient/geonode/GeoNode.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import mu.KotlinLogging
import scraper.net.CoroutinesHttpClient
import scraper.plugin.Plugin
import scraper.plugin.PluginFactory
import scraper.plugin.hook.ProxyData
import scraper.plugin.hook.ProxyWebsite
import scraper.util.data.ProxyData
import java.net.http.HttpResponse

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import mu.KotlinLogging
import scraper.net.CoroutinesHttpClient
import scraper.plugin.Plugin
import scraper.plugin.PluginFactory
import scraper.plugin.hook.ProxyData
import scraper.plugin.hook.ProxyWebsite
import scraper.util.NetworkUtils
import scraper.util.data.ProxyData
import java.net.http.HttpResponse

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import mu.KotlinLogging
import scraper.net.CoroutinesHttpClient
import scraper.plugin.Plugin
import scraper.plugin.PluginFactory
import scraper.plugin.hook.ProxyData
import scraper.plugin.hook.ProxyWebsite
import scraper.util.NetworkUtils
import scraper.util.data.ProxyData
import java.net.http.HttpResponse

/**
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/scraper/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package scraper
import com.fasterxml.jackson.databind.ObjectMapper
import mu.KotlinLogging
import scraper.plugin.PluginFactory
import scraper.plugin.hook.ProxyOutputData
import scraper.threading.ScraperExecutor
import scraper.util.ScraperExecutor
import scraper.util.data.ProxyOutputData
import java.nio.file.Files
import java.nio.file.Path
import kotlin.io.path.exists
Expand Down
2 changes: 2 additions & 0 deletions src/main/kotlin/scraper/plugin/hook/ProxyWebsite.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package scraper.plugin.hook

import scraper.util.data.ProxyData

interface ProxyWebsite {

val proxies : MutableList<ProxyData>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package scraper.threading
package scraper.util

import java.util.concurrent.ExecutorService
import java.util.concurrent.Executors
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package scraper.threading
package scraper.util

import java.util.concurrent.ThreadFactory
import java.util.concurrent.atomic.AtomicInteger
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package scraper.plugin.hook
package scraper.util.data

data class ProxyData(var ip : String, var port : Int, var protocol : String) {
fun values() : String {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package scraper.plugin.hook
package scraper.util.data

data class ProxyOutputData(
val http : MutableList<String>,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package scraper.scripts
package scraper.util.scripts

import com.fasterxml.jackson.databind.JsonMappingException
import com.fasterxml.jackson.databind.ObjectMapper
Expand All @@ -8,8 +8,8 @@ import kotlinx.coroutines.async
import kotlinx.coroutines.runBlocking
import plugin.httpclient.checkerproxy.CheckerProxyData
import scraper.net.CoroutinesHttpClient
import scraper.plugin.hook.ProxyData
import scraper.plugin.hook.ProxyOutputData
import scraper.util.data.ProxyData
import scraper.util.data.ProxyOutputData
import java.net.http.HttpResponse
import java.nio.file.Files
import java.nio.file.Path
Expand Down

0 comments on commit 32619ac

Please sign in to comment.